Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accuraterip-checksum.c:121:44: warning: division by zero [-Wdiv-by-zero] #2

Closed
MerlijnWajer opened this issue Sep 21, 2015 · 1 comment

Comments

@MerlijnWajer
Copy link
Contributor

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

@leo-bogert
Copy link
Owner

Fixed in the most recent version on branch master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants