Merge pull request #691 from peterbell10/develop

Fix build when SOL_STRINGS_ARE_NUMBERS is set
This commit is contained in:
The Phantom Derpstorm 2018-08-04 10:59:07 -04:00 committed by GitHub
commit 2b53d764ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,9 +149,9 @@ namespace stack {
if (!success) { if (!success) {
// expected type, actual type // expected type, actual type
#if defined(SOL_STRINGS_ARE_NUMBERS) && SOL_STRINGS_ARE_NUMBERS #if defined(SOL_STRINGS_ARE_NUMBERS) && SOL_STRINGS_ARE_NUMBERS
handler(L, index, type::number, t, "not a numeric type");
#else
handler(L, index, type::number, type_of(L, index), "not a numeric type or numeric string"); handler(L, index, type::number, type_of(L, index), "not a numeric type or numeric string");
#else
handler(L, index, type::number, t, "not a numeric type");
#endif #endif
} }
return success; return success;