-
Notifications
You must be signed in to change notification settings - Fork 47
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
error while 'sudo make' #11
Comments
Hi @ravbin - I don't see this, but I will bet you it's because we have different versions of gcc/g++. Some versions spot potential overflows that others don't; some issue spurious warnings (which this one is) where others don't. In this case, I think if you insert the line assert( ival >= 0L && ival < 1000000000L); right before the With the Please let me know if that works. (I'm about 99% sure it will, but there's always that 1%.) If it does, I'll modify the code appropriately and push the change to this library. You also should be able to build as a non-root user. |
Yes it solved the problem! Thank you so much. |
…verflow warning because they don't 'see' that the buffer never will, in fact, overflow. An assert() tells the compiler (and anyone reading the code) that this will not be a problem.
opened terminal in the directory and wrote 'sudo make' after copying get_bin.h into the folder. this is the output:
The text was updated successfully, but these errors were encountered: