You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not quite sure I understand the patch; or github formats it in a weird way. Is the code change changing char* to unsigned char* ? Why would this fix the problem?
Its very simple, for example russian letterrs codes (in cp1251) bigger then
128 so they have signed semantic, and in str_getch(InputSrc* arg) function
due type conversion they present as signed int and in hex 0xffffff<leter
code(2 bytes)>, but must be 0x000000<leter code(2 bytes)>, and as a finally
result russain letter "я" have hex code 0xff, so it will be presented as
0xffffffff, ant this will be interpreted as EOF. This patch remove this
improper type conversion
I'm not quite sure I understand the patch; or github formats it in a weird
way. Is the code change changing char* to unsigned char* ? Why would this
fix the problem?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-17806721
.
Here is small patch that fixex problem
HG changeset patch
User [email protected]
Date 1368443820 -14400
Node ID 12d32e5bf970674fd75539054a6c1734e9bdefc7
Parent d0e13408f0338ccefb6ac08cb237ad4662cf01bb
fix russian comments parsing
diff --git a/hlslang/MachineIndependent/preprocessor/scanner.c b/hlslang/MachineIndependent/preprocessor/scanner.c
--- a/hlslang/MachineIndependent/preprocessor/scanner.c
+++ b/hlslang/MachineIndependent/preprocessor/scanner.c
@@ -15,7 +15,7 @@
typedef struct StringInputSrc {
InputSrc base;
} StringInputSrc;
static int eof_scan1(InputSrc *is)
The text was updated successfully, but these errors were encountered: