Skip to content

Commit

Permalink
modules/cron: fix segfault on 32 bit systems
Browse files Browse the repository at this point in the history
Problem: cron module segfaults during travis testing on arm7l.

Change a json_pack() format string to use "I" not "i" to
refer to uint64_t values.

Fixes #1176
  • Loading branch information
garlick committed Sep 1, 2017
1 parent 59607e7 commit 02d6995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/cron/cron.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ static cron_ctx_t * cron_ctx_create (flux_t *h)

static json_t *cron_stats_to_json (struct cron_stats *stats)
{
return json_pack ("{ s:f, s:f, s:f, s:i, s:i, s:i, s:i, s:i, s:i }",
return json_pack ("{ s:f, s:f, s:f, s:I, s:I, s:I, s:I, s:I, s:I }",
"ctime", stats->ctime,
"starttime", stats->starttime,
"lastrun", stats->lastrun,
Expand Down

0 comments on commit 02d6995

Please sign in to comment.