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

Integer overflow error #895

Open
smurfix opened this issue Oct 6, 2020 · 0 comments
Open

Integer overflow error #895

smurfix opened this issue Oct 6, 2020 · 0 comments

Comments

@smurfix
Copy link
Contributor

smurfix commented Oct 6, 2020

You might want a "long long" (1024ULL) here …

/build/lizardfs/src/src/devtools/configuration.h: In static member function ‘static long int Configuration::parseIntWithUnit(const string&)’:
/build/lizardfs/src/src/devtools/configuration.h:62:32: warning: integer overflow in expression of type ‘long int’ results in ‘0’ [-Woverflow]
   62 |     mult = 1024L * 1024 * 1024 * 1024;
      |            ~~~~~~~~~~~~~~~~~~~~^~~~~~
make[4]: Leaving directory '/build/lizardfs/src/build-pack'
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

1 participant