Feefty Posted October 10, 2012 Posted October 10, 2012 what does it mean? http://prntscr.com/h6n2h Quote
Brian Posted October 10, 2012 Posted October 10, 2012 2147483647 is the maximum value for script numbers because they are declared as 32-bit signed integers. The error means your script tried to do some math that resulted in a value larger than 2147483647. Quote
Feefty Posted October 10, 2012 Author Posted October 10, 2012 2147483647 is the maximum value for script numbers because they are declared as 32-bit signed integers. The error means your script tried to do some math that resulted in a value larger than 2147483647. oh okay thanks. Quote
AnnieRuru Posted October 10, 2012 Posted October 10, 2012 (edited) switch( op ) {// operators that can overflow/underflow case C_ADD: ret = i1 + i2; ret_double = (double)i1 + (double)i2; break; case C_SUB: ret = i1 - i2; ret_double = (double)i1 - (double)i2; break; case C_MUL: ret = i1 * i2; ret_double = (double)i1 * (double)i2; break; default: ...................................................... else if( ret_double > (double)INT_MAX ) { ShowWarning("script:op_2num: overflow detected op=%s i1=%d i2=%d\n", script_op2name(op), i1, i2); script_reportsrc(st); ret = INT_MAX; } [Warning]: script:op2num: overflow detected op=C_MUL i1=1355146399 i2=1000 means in that script you performed a MULTIPLY of 1355146399 and 1000, causing overflow try think of something that you can has a variable of 1355146399 times 1000 something like that EDIT: eh ... already solved, I always post slow Edited October 10, 2012 by AnnieRuru 1 Quote
Feefty Posted October 10, 2012 Author Posted October 10, 2012 switch( op ) {// operators that can overflow/underflow case C_ADD: ret = i1 + i2; ret_double = (double)i1 + (double)i2; break; case C_SUB: ret = i1 - i2; ret_double = (double)i1 - (double)i2; break; case C_MUL: ret = i1 * i2; ret_double = (double)i1 * (double)i2; break; default: ...................................................... else if( ret_double > (double)INT_MAX ) { ShowWarning("script:op_2num: overflow detected op=%s i1=%d i2=%d\n", script_op2name(op), i1, i2); script_reportsrc(st); ret = INT_MAX; } [Warning]: script:op2num: overflow detected op=C_MUL i1=1355146399 i2=1000 means in that script you performed a MULTIPLY of 1355146399 and 1000, causing overflow try think of something that you can has a variable of 1355146399 times 1000 something like that EDIT: eh ... already solved, I always post slow yeah im still learning athena scripting, i just read about OnHour Quote
Question
Feefty
what does it mean?
http://prntscr.com/h6n2h
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.