You are viewing a single comment's thread. Return to all comments →
In
static_cast<long long>(l*b*h)
You cast the result which already overflowed at this state.
static_cast<long long>(l)*b*h
Should work like your second example where you actually only cast l.
Seems like cookies are disabled on this browser, please enable them to open this website
Box It!
You are viewing a single comment's thread. Return to all comments →
In
You cast the result which already overflowed at this state.
Should work like your second example where you actually only cast l.