Archive: Maybe another bug in 1.54 ?


Maybe another bug in 1.54 ?
In exehead\exec.c,
is it normal that myatoi is only one line big ?

int myatoi(char *s);

In NSIS 1.50, it was :


static int myatoi(char *s)
{
int v=0;
int sign=0;
if (*s == '-') { s++; sign++; }
for (;;)
{
int c=*s++ - '0';
if (c < 0 || c > 9) break;
v*=10;
v+=c;
}
if (sign) return -v;
return v;
}

This is fine, I moved the implementation to util.c.

-j