Skip to content

Commit e8fb929

Browse files
authored
Merge pull request #31 from carlobaldassi/fix07b
Fix a last-minute julia 0.7 deprecation warning
2 parents 750db4a + 5849087 commit e8fb929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utf8.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function convert(::Type{UTF8String}, dat::Vector{UInt8})
253253
else
254254
# Pick up surrogate pairs (CESU-8 format)
255255
ch = ((((((ch & 0x3f) << 6) | (dat[pos + 1] & 0x3f)) << 10)
256-
+ (((dat[pos + 3] & 0x3f)%UInt32 << 6) | (dat[pos + 4] & 0x3f)))
256+
+ ((((dat[pos + 3] & 0x3f)%UInt32) << 6) | (dat[pos + 4] & 0x3f)))
257257
- 0x01f0c00)
258258
pos += 4
259259
output_utf8_4byte!(buf, out, ch)

0 commit comments

Comments
 (0)