mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Another text size assertion.
This commit is contained in:
parent
d880d46214
commit
f9615efea5
@ -241,6 +241,7 @@ namespace chaiscript
|
||||
|
||||
if (skip_bom(infile)) {
|
||||
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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user