mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user