You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gcc -std=gnu99 -lsndfile accuraterip-checksum.c -o accuraterip-checksum
accuraterip-checksum.c: In function ‘compute_v2_checksum’:
accuraterip-checksum.c:121:44: warning: division by zero [-Wdiv-by-zero]
The problem is that you define "__int64" as long. That is not correct, you should use the proper type for this. You should include stdint.h and use uint64_t
The text was updated successfully, but these errors were encountered:
Compiling with GCC, I get this:
$ gcc -std=gnu99 -lsndfile accuraterip-checksum.c -o accuraterip-checksum
accuraterip-checksum.c: In function ‘compute_v2_checksum’:
accuraterip-checksum.c:121:44: warning: division by zero [-Wdiv-by-zero]
The problem is that you define "__int64" as long. That is not correct, you should use the proper type for this. You should include stdint.h and use uint64_t
The text was updated successfully, but these errors were encountered: