From: Alexander Langer <alex(at)>
Date: Wed, 22 Dec 1999 16:31:50 +0100


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

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 */
  char cval;
  double fval;
  long ival;
  char *sval;
  TreeNode node;

Ich hab keine Idee. Fuer mich sieht alles ok aus.

Irgendwelche Ideen?



I doubt, therefore I might be. 
To Unsubscribe: send mail to majordomo(at)
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 22 Dec 1999 - 16:31:19 CET

search this site