We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b2e83 commit 81fb72bCopy full SHA for 81fb72b
ext/mysql2/statement.c
@@ -218,7 +218,7 @@ static int my_big2ll(VALUE bignum, LONG_LONG *ptr)
218
#else
219
len = RBIGNUM_LEN(bignum) * SIZEOF_BDIGITS;
220
#endif
221
- if (len > 8) goto overflow;
+ if (len > sizeof(LONG_LONG)) goto overflow;
222
if (RBIGNUM_POSITIVE_P(bignum)) {
223
num = rb_big2ull(bignum);
224
if (num > LLONG_MAX)
0 commit comments