ソースを参照

Change StreamReader::IncPtr argument to signed

Negative values are passed to it so it needs to be signed
Turo Lamminen 7 年 前
コミット
463dec5c7e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      code/StreamReader.h

+ 1 - 1
code/StreamReader.h

@@ -192,7 +192,7 @@ public:
 
     // ---------------------------------------------------------------------
     /** Increase the file pointer (relative seeking)  */
-    void IncPtr(size_t plus)    {
+    void IncPtr(intptr_t plus)    {
         current += plus;
         if (current > limit) {
             throw DeadlyImportError("End of file or read limit was reached");