diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-29 20:43:16 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-29 20:43:16 +0000 |
commit | c8be741b21120fdfd530c5ae974d1f62577af9eb (patch) | |
tree | 2c9f4d20c4d1642c8b5bd3f8719e35a059fe2ee5 /ast_expr2f.c | |
parent | 760a222303818a31e7bdcb1e08706e7bbaae5846 (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: http://svn.digium.com/svn/asterisk/trunk@6437 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'ast_expr2f.c')
-rwxr-xr-x | ast_expr2f.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ast_expr2f.c b/ast_expr2f.c index 89ad83d20..fce65a2a0 100755 --- a/ast_expr2f.c +++ b/ast_expr2f.c @@ -453,7 +453,7 @@ static yyconst flex_int16_t yy_chk[56] = #ifndef SOLARIS #include <err.h> #else -#define quad_t uint64_t +#define quad_t int64_t #endif #include <errno.h> #include <regex.h> @@ -2104,8 +2104,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); |