Bläddra i källkod

Change StreamReader::IncPtr argument to signed

Negative values are passed to it so it needs to be signed
Turo Lamminen 7 år sedan
förälder
incheckning
463dec5c7e
1 ändrade filer med 1 tillägg och 1 borttagningar
  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");