Skip to content

Commit 902ceaf

Browse files
committed
unchanged variable screwing us in certain debug modes
1 parent 9b782ff commit 902ceaf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

single/sol/sol.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
// This file was generated with a script.
23-
// Generated 2018-11-28 03:18:56.546705 UTC
24-
// This header was generated with sol v2.20.6 (revision 4a0f382)
23+
// Generated 2018-11-28 08:50:22.534324 UTC
24+
// This header was generated with sol v2.20.6 (revision 9b782ff)
2525
// https://github.com/ThePhD/sol2
2626

2727
#ifndef SOL_SINGLE_INCLUDE_HPP
@@ -8259,12 +8259,12 @@ namespace stack {
82598259
return false;
82608260
}
82618261
#endif // Do not allow strings to be numbers
8262-
int isnum = 0;
82638262
#if (defined(SOL_SAFE_NUMERICS) && SOL_SAFE_NUMERICS) && !(defined(SOL_NO_CHECK_NUMBER_PRECISION) && SOL_NO_CHECK_NUMBER_PRECISION)
8263+
int isnum = 0;
82648264
const lua_Number v = lua_tonumberx(L, index, &isnum);
82658265
const bool success = isnum != 0 && static_cast<lua_Number>(llround(v)) == v;
82668266
#else
8267-
const bool success = isnum != 0;
8267+
const bool success = true;
82688268
#endif // Safe numerics and number precision checking
82698269
if (!success) {
82708270
// expected type, actual type

single/sol/sol_forward.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
// This file was generated with a script.
23-
// Generated 2018-11-28 03:18:56.778088 UTC
24-
// This header was generated with sol v2.20.6 (revision 4a0f382)
23+
// Generated 2018-11-28 08:50:22.827662 UTC
24+
// This header was generated with sol v2.20.6 (revision 9b782ff)
2525
// https://github.com/ThePhD/sol2
2626

2727
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

sol/stack_check_unqualified.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ namespace stack {
140140
return false;
141141
}
142142
#endif // Do not allow strings to be numbers
143-
int isnum = 0;
144143
#if (defined(SOL_SAFE_NUMERICS) && SOL_SAFE_NUMERICS) && !(defined(SOL_NO_CHECK_NUMBER_PRECISION) && SOL_NO_CHECK_NUMBER_PRECISION)
144+
int isnum = 0;
145145
const lua_Number v = lua_tonumberx(L, index, &isnum);
146146
const bool success = isnum != 0 && static_cast<lua_Number>(llround(v)) == v;
147147
#else
148-
const bool success = isnum != 0;
148+
const bool success = true;
149149
#endif // Safe numerics and number precision checking
150150
if (!success) {
151151
// expected type, actual type

0 commit comments

Comments
 (0)