Commit 77579d44 authored by Ryan C. Gordon's avatar Ryan C. Gordon

ANSI C fix (all variables need to be defined at start of block).

  Fixes Bugzilla #487.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402637
parent ccf6e30b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment