Skip to content

Commit

Permalink
* Source/Additions/Unicode.m: Move variable u to the correct scope
Browse files Browse the repository at this point in the history
and initialize it.
  • Loading branch information
fredkiefer committed Jan 6, 2019
1 parent 0c319eb commit a315065
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2019-01-06 Fred Kiefer <[email protected]>

* Source/Additions/Unicode.m: Move variable u to the correct scope
and initialize it.

2019-01-06 Ivan Vucica <[email protected]>

* ANNOUNCE:
Expand Down
3 changes: 2 additions & 1 deletion Source/Additions/Unicode.m
Original file line number Diff line number Diff line change
Expand Up @@ -972,12 +972,12 @@ static void GSSetupEncodingTable(void)
{
case NSUTF8StringEncoding:
{
uint32_t u = 0;
#if defined(UTF8DECODE)
uint32_t state = 0;
#endif
while (spos < slen)
{
uint32_t u;

#if defined(UTF8DECODE)
if (decode(&state, &u, src[spos++]))
Expand Down Expand Up @@ -1105,6 +1105,7 @@ static void GSSetupEncodingTable(void)
GROW();
}
ptr[dpos++] = ul + 0xdc00;
NSLog(@"Adding uh %d ul %d", uh + 0xd800, ul + 0xdc00);
}
}
#if defined(UTF8DECODE)
Expand Down

0 comments on commit a315065

Please sign in to comment.