diff --git a/examples/C/bufr_subset.c b/examples/C/bufr_subset.c index 317242dfc..1bc09cb01 100644 --- a/examples/C/bufr_subset.c +++ b/examples/C/bufr_subset.c @@ -68,7 +68,7 @@ int main(int argc,char* argv[]) { sprintf(key,"/subsetNumber=%d/blockNumber",i); - printf(" subsetNumber=%ld",i); + printf(" subsetNumber=%d",i); /* read and print some data values */ CODES_CHECK(codes_get_long(h,key,&longVal),0); printf(" blockNumber=%ld",longVal);