Another text size assertion.

This commit is contained in:
Alek Mosingiewicz 2018-05-22 16:27:19 +02:00
parent d880d46214
commit f9615efea5

View File

@ -241,6 +241,7 @@ namespace chaiscript
if (skip_bom(infile)) { if (skip_bom(infile)) {
size-=3; // decrement the BOM size from file size, otherwise we'll get parsing errors size-=3; // decrement the BOM size from file size, otherwise we'll get parsing errors
assert(size >=0 ); //and check if there's more text
} }
if (size == std::streampos(0)) if (size == std::streampos(0))