Skip to content

Commit 5849087

Browse files
committed
Fix a julia 0.7 deprecation warning
add parentheses around a % operation
1 parent 750db4a commit 5849087

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)