Fix int width problem for 32-bit
authorDavid M. Lee <dlee@digium.com>
Thu, 4 Jul 2013 13:18:45 +0000 (13:18 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 4 Jul 2013 13:18:45 +0000 (13:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393679 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_ari_model.c

index 21ad80a..e881881 100644 (file)
@@ -147,7 +147,7 @@ AST_TEST_DEFINE(validate_int)
                break;
        }
 
-       uut = ast_json_integer_create(-2147483648);
+       uut = ast_json_integer_create(-2147483648LL);
        ast_test_validate(test, NULL != uut);
        ast_test_validate(test, ari_validate_int(uut));
 
@@ -155,7 +155,7 @@ AST_TEST_DEFINE(validate_int)
        ast_test_validate(test, 0 == res);
        ast_test_validate(test, ari_validate_int(uut));
 
-       res = ast_json_integer_set(uut, 2147483647);
+       res = ast_json_integer_set(uut, 2147483647LL);
        ast_test_validate(test, 0 == res);
        ast_test_validate(test, ari_validate_int(uut));