mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix build when SOL_STRINGS_ARE_NUMBERS is set
This commit is contained in:
parent
6638b300cc
commit
06dfed4204
|
@ -149,9 +149,9 @@ namespace stack {
|
|||
if (!success) {
|
||||
// expected type, actual type
|
||||
#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");
|
||||
#else
|
||||
handler(L, index, type::number, t, "not a numeric type");
|
||||
#endif
|
||||
}
|
||||
return success;
|
||||
|
|
Loading…
Reference in New Issue
Block a user