diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-29 20:43:16 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-29 20:43:16 +0000 |
commit | 830943cd0d3272e6d38aa6fabb6cdf8696426fdb (patch) | |
tree | 2c9f4d20c4d1642c8b5bd3f8719e35a059fe2ee5 /ast_expr2.fl | |
parent | 464c3dca3c0ef02cd0c08e26423f38e3b9c533c0 (diff) |
fix signed/unsigned result issue on 32-bit platforms (issue #5050)
(expression parser was rebuilt with bison 1.875d as well)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'ast_expr2.fl')
-rwxr-xr-x | ast_expr2.fl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ast_expr2.fl b/ast_expr2.fl index 3eaf80461..a2282cdbe 100755 --- a/ast_expr2.fl +++ b/ast_expr2.fl @@ -116,8 +116,8 @@ char *ast_expr (char *arg) return(pirouni); } else { if (io->val->type == AST_EXPR_integer) { - pirouni=malloc(256); - sprintf (pirouni,"%lld", (long long)io->val->u.i); + pirouni = malloc(24); + sprintf(pirouni, "%ld", io->val->u.i); } else { pirouni=strdup(io->val->u.s); |