@@ -1997,7 +1997,7 @@ yyjson_api_inline bool yyjson_set_sint(yyjson_val *val, int64_t num);
19971997/** Set the value to int.
19981998 Returns false if input is NULL or `val` is object or array.
19991999 @warning This will modify the `immutable` value, use with caution. */
2000- yyjson_api_inline bool yyjson_set_int (yyjson_val * val , int num );
2000+ yyjson_api_inline bool yyjson_set_int (yyjson_val * val , int64_t num );
20012001
20022002/** Set the value to float.
20032003 Returns false if input is NULL or `val` is object or array.
@@ -2600,7 +2600,7 @@ yyjson_api_inline bool yyjson_mut_set_sint(yyjson_mut_val *val, int64_t num);
26002600/** Set the value to int.
26012601 Returns false if input is NULL.
26022602 @warning This function should not be used on an existing object or array. */
2603- yyjson_api_inline bool yyjson_mut_set_int (yyjson_mut_val * val , int num );
2603+ yyjson_api_inline bool yyjson_mut_set_int (yyjson_mut_val * val , int64_t num );
26042604
26052605/** Set the value to float.
26062606 Returns false if input is NULL.
@@ -5426,9 +5426,9 @@ yyjson_api_inline bool yyjson_set_sint(yyjson_val *val, int64_t num) {
54265426 return true;
54275427}
54285428
5429- yyjson_api_inline bool yyjson_set_int (yyjson_val * val , int num ) {
5429+ yyjson_api_inline bool yyjson_set_int (yyjson_val * val , int64_t num ) {
54305430 if (yyjson_unlikely (!val || unsafe_yyjson_is_ctn (val ))) return false;
5431- unsafe_yyjson_set_sint (val , ( int64_t ) num );
5431+ unsafe_yyjson_set_sint (val , num );
54325432 return true;
54335433}
54345434
@@ -5979,9 +5979,9 @@ yyjson_api_inline bool yyjson_mut_set_sint(yyjson_mut_val *val, int64_t num) {
59795979 return true;
59805980}
59815981
5982- yyjson_api_inline bool yyjson_mut_set_int (yyjson_mut_val * val , int num ) {
5982+ yyjson_api_inline bool yyjson_mut_set_int (yyjson_mut_val * val , int64_t num ) {
59835983 if (yyjson_unlikely (!val )) return false;
5984- unsafe_yyjson_set_sint (val , ( int64_t ) num );
5984+ unsafe_yyjson_set_sint (val , num );
59855985 return true;
59865986}
59875987
0 commit comments