mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #691 from peterbell10/develop
Fix build when SOL_STRINGS_ARE_NUMBERS is set
This commit is contained in:
commit
2b53d764ed
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user