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

Use llabs function instead of abs to avoid truncating the result #81

Merged
merged 1 commit into from
Jan 4, 2015

Conversation

jack-pappas
Copy link
Contributor

When compiling blosc with MSVC 18.0 (VS2013), I saw some compiler warnings about long long int values being possibly truncated by abs (because that function takes an int). I've modified the code to use the llabs function instead to avoid this issue.

@FrancescAlted
Copy link
Member

True. I had seen the warning also with recent clang (3.5?) too, so merging.

FrancescAlted added a commit that referenced this pull request Jan 4, 2015
Use llabs function instead of abs to avoid truncating the result
@FrancescAlted FrancescAlted merged commit 88ce034 into Blosc:master Jan 4, 2015
@jack-pappas jack-pappas deleted the blosclz-fixes branch January 4, 2015 19:18
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

Successfully merging this pull request may close these issues.

2 participants