Change StreamReader::IncPtr argument to signed

Negative values are passed to it so it needs to be signed
pull/1637/head
Turo Lamminen 2017-12-16 15:19:53 +02:00
parent 2f082340fc
commit 463dec5c7e
1 changed files with 1 additions and 1 deletions

View File

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