From 385d3d394747a84cf792146e1e63b888252c93e0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 7 Sep 2014 16:03:02 +0000 Subject: (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 --- src/script/squirrel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf