-
Notifications
You must be signed in to change notification settings - Fork 5
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
signed integer overflow: 107374182400000000 * 1000 cannot be represented in type 'long' #45
Comments
workaround: nSatoshisPerK = nFeePaid * 1000 / nSize; to nSatoshisPerK = nFeePaid / nSize*1000; |
// Avoid:
// policy/feerate.cpp:28:34: runtime error: signed integer overflow: 34873208148477500 * 1000 cannot be represented in type 'long'
//
// Reproduce using CFeeRate(348732081484775, 10).GetFeePerK() |
BTC has error too // policy/feerate.cpp:28:34: runtime error: signed integer overflow: 34873208148477500 * 1000 cannot be represented in type 'long' |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yumekawa/src/test/fuzz/util.h
Lines 127 to 130 in a14eadf
https://cirrus-ci.com/task/4665805700857856?command=ci#L4087
The text was updated successfully, but these errors were encountered: