diff options
author | rubidium <rubidium@openttd.org> | 2014-09-07 16:03:02 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-07 16:03:02 +0000 |
commit | 385d3d394747a84cf792146e1e63b888252c93e0 (patch) | |
tree | 22f93598bc7e8ac2b7d21338a14b1dc6aab3e666 | |
parent | 93722be21f15960f926d50808c21d6cfa80c604c (diff) | |
download | openttd-385d3d394747a84cf792146e1e63b888252c93e0.tar.xz |
(svn r26796) -Fix: reading of high byte of "ASCII" files yielded a negative int8, then casted to an uint32 which caused the Squirrel lexer to bail out. Regardless... the file isn't actually ASCII, but that's beyond the point for now
-rw-r--r-- | src/script/squirrel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index ae8b9b03a..d01124302 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -382,7 +382,7 @@ public: static WChar _io_file_lexfeed_ASCII(SQUserPointer file) { - char c; + unsigned char c; if (((SQFile *)file)->Read(&c, sizeof(c), 1) > 0) return c; return 0; } |