Fix for a busted assertion

This commit is contained in:
ridiculousfish 2013-12-15 16:44:05 -08:00
parent ddb37a47da
commit 471f7f06f7

View File

@ -559,7 +559,7 @@ void parser_t::error(int ec, size_t p, const wchar_t *str, ...)
error_code = ec;
assert(p <= INT_MAX);
// note : p may be -1
err_pos = static_cast<int>(p);
va_start(va, str);