Huhu!
Kann sich jemand erklaeren, wie folgendes zustande kommen _koennte_?
Program received signal SIGFPE, Arithmetic exception.
parseNumber (c=49, lvalp=0xbfbfed48) at lex.c:698
698 lvalp->fval = (double) num;
(gdb) p num
$6 = 1
(gdb) p lvalp
$7 = (YYSTYPE *) 0xbfbfed48
(gdb) p lvalp->fval
$8 = 3.3219280853201738
(gdb)
Die entsprechende Stelle im Source:
if (dotSeen) {
lvalp->fval = (double) num;
return (FLOATING_LITERAL);
} else {
num ist:
double num, floatExponent;
lvalp ist:
YYSTYPE *lvalp;
fuer lex, aus dem .y file:
/* definition of YYSTYPE */
%union{
char cval;
double fval;
long ival;
char *sval;
TreeNode node;
}
Ich hab keine Idee. Fuer mich sieht alles ok aus.
Irgendwelche Ideen?
Schöö
Alex
-- I doubt, therefore I might be. To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Wed 22 Dec 1999 - 16:31:19 CET