build/sim: use json_object_get_int64 instead of json_object_get_uint64.

json_object_get_uint64 does not seem supported with old json-c versions.
This commit is contained in:
Florent Kermarrec 2020-08-04 15:32:29 +02:00
parent 382c1a3a44
commit 696ea468b8
2 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,8 @@ static int clocker_parse_args(struct session_s *s, const char *args)
goto out;
}
s->freq_hz = json_object_get_uint64(freq_json);
s->phase_deg = json_object_get_uint64(phase_json);
s->freq_hz = json_object_get_int64(freq_json);
s->phase_deg = json_object_get_int64(phase_json);
if (s->freq_hz == 0) {
ret = RC_JSERROR;

View File

@ -345,7 +345,7 @@ static int json_get_timebase(json_object *obj, uint64_t *timebase)
goto out;
}
_timebase = json_object_get_uint64(json_timebase);
_timebase = json_object_get_int64(json_timebase);
if (_timebase == 0)
{
ret=RC_JSERROR;