+***version 2.2.4 stable***\r
+-fixed bug in functions with default parameters\r
+\r
+***2009-06-30 ***\r
***version 2.2.3 stable***\r
-added sq_getfunctioninfo\r
-added compile time flag SQUSEDOUBLE to use double precision floats\r
-The programming language SQUIRREL 2.2.3 stable\r
+The programming language SQUIRREL 2.2.4 stable\r
\r
--------------------------------------------------\r
The project has been compiled and run on Windows(Windows XP/2000 on Intel x86 Windows XP Pro on AMD x64) and\r
#define MAX_CHAR 0xFF
#endif
-#define SQUIRREL_VERSION _SC("Squirrel 2.2.3 stable")
+#define SQUIRREL_VERSION _SC("Squirrel 2.2.4 stable")
#define SQUIRREL_COPYRIGHT _SC("Copyright (C) 2003-2009 Alberto Demichelis")
#define SQUIRREL_AUTHOR _SC("Alberto Demichelis")
SQInteger nargs = args;
if (paramssize != nargs) {
SQInteger ndef = func->_ndefaultparams;
- if(ndef && nargs < paramssize) {
- SQInteger diff = paramssize - nargs;
+ SQInteger diff;
+ if(ndef && nargs < paramssize && (diff = paramssize - nargs) <= ndef) {
for(SQInteger n = ndef - diff; n < ndef; n++) {
_stack._vals[stackbase + (nargs++)] = closure->_defaultparams[n];
}