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