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
This commit is contained in:
Kevin P. Fleming
2005-08-29 20:43:16 +00:00
parent 464c3dca3c
commit 830943cd0d
5 changed files with 135 additions and 108 deletions

View File

@@ -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);