[asterisk-commits] dlee: trunk r393679 - /trunk/tests/test_ari_model.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 4 08:18:47 CDT 2013


Author: dlee
Date: Thu Jul  4 08:18:45 2013
New Revision: 393679

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393679
Log:
Fix int width problem for 32-bit

Modified:
    trunk/tests/test_ari_model.c

Modified: trunk/tests/test_ari_model.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_ari_model.c?view=diff&rev=393679&r1=393678&r2=393679
==============================================================================
--- trunk/tests/test_ari_model.c (original)
+++ trunk/tests/test_ari_model.c Thu Jul  4 08:18:45 2013
@@ -147,7 +147,7 @@
 		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_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));
 




More information about the asterisk-commits mailing list