Skip to content

Commit 959e586

Browse files
committed
Use sizeof(long) instead of sizeof(integer) for counting UTF32 chars
1 parent 2c6f957 commit 959e586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/lex-utf.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ end function
600600
private function hUTF32LEToUTF32LE( ) as integer static
601601

602602
if( get( #env.inf.num, , lex.ctx->buffw ) = 0 ) then
603-
function = cunsg(seek( env.inf.num ) - lex.ctx->filepos) \ len( uinteger )
603+
function = cunsg(seek( env.inf.num ) - lex.ctx->filepos) \ sizeof( ulong )
604604
else
605605
function = 0
606606
end if

0 commit comments

Comments
 (0)