@@ -227,7 +227,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
227227 diff = clock () - start ;
228228 int msec = diff * 1000 / CLOCKS_PER_SEC ;
229229
230- fprintf (stderr , "Encoded %ld streams of %ld integers (%ld bytes) into %ld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
230+ fprintf (stderr , "Encoded %lld streams of %lld integers (%lld bytes) into %lld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
231231 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
232232
233233 free (compressed );
@@ -247,7 +247,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
247247 diff = clock () - start ;
248248 msec = diff * 1000 / CLOCKS_PER_SEC ;
249249
250- fprintf (stderr , "Encoded (threaded) %ld streams of %ld integers (%ld bytes) into %ld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
250+ fprintf (stderr , "Encoded (threaded) %lld streams of %lld integers (%lld bytes) into %lld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
251251 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
252252
253253 // Compute stream nbytes
@@ -275,7 +275,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
275275 first_sample ,
276276 last_sample
277277 );
278- fprintf (stderr , "Verified %ld streams of %ld integers, status = %d\n" , n_streams , stream_len , status );
278+ fprintf (stderr , "Verified %lld streams of %lld integers, status = %d\n" , n_streams , stream_len , status );
279279
280280 start = clock ();
281281 status = decode_i32 (
@@ -291,7 +291,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
291291 diff = clock () - start ;
292292 msec = diff * 1000 / CLOCKS_PER_SEC ;
293293
294- fprintf (stderr , "Decoded %ld streams of %ld integers, status = %d\n" , n_streams , stream_len , status );
294+ fprintf (stderr , "Decoded %lld streams of %lld integers, status = %d\n" , n_streams , stream_len , status );
295295 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
296296
297297 start = clock ();
@@ -308,7 +308,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
308308 diff = clock () - start ;
309309 msec = diff * 1000 / CLOCKS_PER_SEC ;
310310
311- fprintf (stderr , "Decoded (with threads) %ld streams of %ld integers, status = %d\n" , n_streams , stream_len , status );
311+ fprintf (stderr , "Decoded (with threads) %lld streams of %lld integers, status = %d\n" , n_streams , stream_len , status );
312312 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
313313
314314 // Verify
@@ -318,7 +318,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
318318 elem = istream * stream_len + isamp ;
319319 if (data [elem ] != decompressed [elem ]) {
320320 fprintf (stderr ,
321- "FAIL stream %ld , sample %ld : %d != %d\n" ,
321+ "FAIL stream %lld , sample %lld : %d != %d\n" ,
322322 istream , isamp , decompressed [elem ], data [elem ]);
323323 }
324324 }
@@ -353,7 +353,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
353353 first_sample ,
354354 last_sample
355355 );
356- fprintf (stderr , "Verified %ld streams with slice of %ld integers, status = %d\n" , n_streams , n_decode , status );
356+ fprintf (stderr , "Verified %lld streams with slice of %lld integers, status = %d\n" , n_streams , n_decode , status );
357357
358358 start = clock ();
359359 status = decode_i32 (
@@ -369,7 +369,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
369369 diff = clock () - start ;
370370 msec = diff * 1000 / CLOCKS_PER_SEC ;
371371
372- fprintf (stderr , "Decoded %ld streams with slice of %ld integers, status = %d\n" , n_streams , n_decode , status );
372+ fprintf (stderr , "Decoded %lld streams with slice of %lld integers, status = %d\n" , n_streams , n_decode , status );
373373 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
374374
375375 start = clock ();
@@ -386,7 +386,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
386386 diff = clock () - start ;
387387 msec = diff * 1000 / CLOCKS_PER_SEC ;
388388
389- fprintf (stderr , "Decoded (with threads) %ld streams with slice of %ld integers, status = %d\n" , n_streams , n_decode , status );
389+ fprintf (stderr , "Decoded (with threads) %lld streams with slice of %lld integers, status = %d\n" , n_streams , n_decode , status );
390390 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
391391
392392 // Verify
@@ -398,7 +398,7 @@ void test_32bit(int64_t n_streams, int64_t stream_len) {
398398 output_elem = istream * n_decode + (isamp - first_sample );
399399 if (data [input_elem ] != decompressed [output_elem ]) {
400400 fprintf (stderr ,
401- "FAIL stream %ld , sample %ld : %d != %d\n" ,
401+ "FAIL stream %lld , sample %lld : %d != %d\n" ,
402402 istream , isamp , decompressed [output_elem ], data [input_elem ]);
403403 }
404404 }
@@ -480,7 +480,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
480480 diff = clock () - start ;
481481 int msec = diff * 1000 / CLOCKS_PER_SEC ;
482482
483- fprintf (stderr , "Encoded %ld streams of %ld 64bit integers (%ld bytes) into %ld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
483+ fprintf (stderr , "Encoded %lld streams of %lld 64bit integers (%lld bytes) into %lld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
484484 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
485485
486486 free (compressed );
@@ -500,7 +500,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
500500 diff = clock () - start ;
501501 msec = diff * 1000 / CLOCKS_PER_SEC ;
502502
503- fprintf (stderr , "Encoded (threaded) %ld streams of %ld 64bit integers (%ld bytes) into %ld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
503+ fprintf (stderr , "Encoded (threaded) %lld streams of %lld 64bit integers (%lld bytes) into %lld bytes, status = %d\n" , n_streams , stream_len , input_bytes , n_bytes , status );
504504 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
505505
506506 // Compute stream nbytes
@@ -528,7 +528,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
528528 first_sample ,
529529 last_sample
530530 );
531- fprintf (stderr , "Verified %ld streams of %ld 64bit integers, status = %d\n" , n_streams , stream_len , status );
531+ fprintf (stderr , "Verified %lld streams of %lld 64bit integers, status = %d\n" , n_streams , stream_len , status );
532532
533533 start = clock ();
534534 status = decode_i64 (
@@ -544,7 +544,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
544544 diff = clock () - start ;
545545 msec = diff * 1000 / CLOCKS_PER_SEC ;
546546
547- fprintf (stderr , "Decoded %ld streams of %ld 64bit integers, status = %d\n" , n_streams , stream_len , status );
547+ fprintf (stderr , "Decoded %lld streams of %lld 64bit integers, status = %d\n" , n_streams , stream_len , status );
548548 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
549549
550550 start = clock ();
@@ -561,7 +561,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
561561 diff = clock () - start ;
562562 msec = diff * 1000 / CLOCKS_PER_SEC ;
563563
564- fprintf (stderr , "Decoded (with threads) %ld streams of %ld 64bit integers, status = %d\n" , n_streams , stream_len , status );
564+ fprintf (stderr , "Decoded (with threads) %lld streams of %lld 64bit integers, status = %d\n" , n_streams , stream_len , status );
565565 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
566566
567567 // Verify
@@ -573,7 +573,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
573573 elem = istream * stream_len + isamp ;
574574 if (data [elem ] != decompressed [elem ]) {
575575 fprintf (stderr ,
576- "FAIL stream %ld , sample %ld : %ld != %ld \n" ,
576+ "FAIL stream %lld , sample %lld : %lld != %lld \n" ,
577577 istream , isamp , decompressed [elem ], data [elem ]);
578578 fprintf (stderr ,
579579 " out [ %d | %d ] != in [ %d | %d ]\n" ,
@@ -612,7 +612,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
612612 first_sample ,
613613 last_sample
614614 );
615- fprintf (stderr , "Verified %ld streams with slice of %ld 64bit integers, status = %d\n" , n_streams , n_decode , status );
615+ fprintf (stderr , "Verified %lld streams with slice of %lld 64bit integers, status = %d\n" , n_streams , n_decode , status );
616616
617617 start = clock ();
618618 status = decode_i64 (
@@ -628,7 +628,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
628628 diff = clock () - start ;
629629 msec = diff * 1000 / CLOCKS_PER_SEC ;
630630
631- fprintf (stderr , "Decoded %ld streams with slice of %ld 64bit integers, status = %d\n" , n_streams , n_decode , status );
631+ fprintf (stderr , "Decoded %lld streams with slice of %lld 64bit integers, status = %d\n" , n_streams , n_decode , status );
632632 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
633633
634634 start = clock ();
@@ -645,7 +645,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
645645 diff = clock () - start ;
646646 msec = diff * 1000 / CLOCKS_PER_SEC ;
647647
648- fprintf (stderr , "Decoded (with threads) %ld streams with slice of %ld 64bit integers, status = %d\n" , n_streams , n_decode , status );
648+ fprintf (stderr , "Decoded (with threads) %lld streams with slice of %lld 64bit integers, status = %d\n" , n_streams , n_decode , status );
649649 fprintf (stderr , " CPU time: %d seconds %d milliseconds\n" , msec / 1000 , msec % 1000 );
650650
651651 // Verify
@@ -657,7 +657,7 @@ void test_64bit(int64_t n_streams, int64_t stream_len) {
657657 output_elem = istream * n_decode + (isamp - first_sample );
658658 if (data [input_elem ] != decompressed [output_elem ]) {
659659 fprintf (stderr ,
660- "FAIL stream %ld , sample %ld : %ld != %ld \n" ,
660+ "FAIL stream %lld , sample %lld : %lld != %lld \n" ,
661661 istream , isamp , decompressed [output_elem ], data [input_elem ]);
662662 }
663663 }
0 commit comments