diff --git a/devtools/create-gossipstore.c b/devtools/create-gossipstore.c index 5657d6864..a9a26b15c 100644 --- a/devtools/create-gossipstore.c +++ b/devtools/create-gossipstore.c @@ -28,7 +28,7 @@ struct scidsat * load_scid_file(FILE * scidfd) return NULL; struct scidsat * scids = calloc(n, sizeof(scidsat)); int i = 0; - while(fscanf(scidfd, "%s ,%ld\n", scids[i].scid, &scids[i].sat.satoshis) == 2 ) { /* Raw: read from file */ + while(fscanf(scidfd, "%s ,%" SCNu64 "\n", scids[i].scid, &scids[i].sat.satoshis) == 2 ) { /* Raw: read from file */ i++; } return scids;