Change StreamReader::IncPtr argument to signed
Negative values are passed to it so it needs to be signedpull/1637/head
parent
2f082340fc
commit
463dec5c7e
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue