Skip to content

Commit

Permalink
ANSI C fix (all variables need to be defined at start of block).
Browse files Browse the repository at this point in the history
  Fixes Bugzilla #487.
  • Loading branch information
icculus committed Sep 1, 2007
1 parent 9525f98 commit 67d8cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -235,11 +235,11 @@ static int Utf8ToUtf16(const Uint8 *utf8, const int utf8_length, Uint16 *utf16,
Uint8 const *const end_of_input = utf8 + utf8_length - 1;

while (utf8 <= end_of_input) {
Uint8 const c = *utf8;
if (p >= max_ptr) {
/* No more output space. */
return -1;
}
Uint8 const c = *utf8;
if (c < 0x80) {
/* One byte ASCII. */
*p++ = c;
Expand Down

0 comments on commit 67d8cba

Please sign in to comment.