]> andersk Git - splint.git/blobdiff - src/cgrammar.y
*** empty log message ***
[splint.git] / src / cgrammar.y
index c71d42083d9af9791e607929878928baeb4719fc..fa85cb4560399b4942f0c4e06304008b1ca831f5 100644 (file)
@@ -487,16 +487,8 @@ BufConstraintExpr
    $$ = constraintExpr_parseMakeBinaryOp ($2, $3, $4); }
 
 BufConstraintTerm
- : BufConstraintSrefExpr { $$ =  constraintExpr_makeTermsRef($1);} 
- | CCONSTANT 
-   {  
-     /* char *t; int c;
-       t =  cstring_toCharsSafe (exprNode_unparse($1));
-       c = atoi( t );
-     */
-     
-     $$ = constraintExpr_makeIntLiteral (exprNode_getLongValue ($1));
-   }
+ : BufConstraintSrefExpr { $$ =  constraintExpr_makeTermsRef ($1);} 
+ | CCONSTANT { $$ = constraintExpr_makeIntLiteral (exprNode_getLongValue ($1)); }
 
 BufConstraintSrefExpr
 : id            
This page took 0.034195 seconds and 4 git commands to generate.