Closed RobertoMachorro closed 5 years ago
@RobertoMachorro Thank you for this pull request. This pull request will cause conflict with the latest code, so I will manually add it. The downcast should be safe, because we have the following check above this downcast:
if ( val > INT_MAX || val < INT_MIN )
errorcode = ARG_ERR_OVERFLOW;
By the way, I build the code on Ubuntu with Clang-7, but I don't see any Clang warning for this statement. I will check it again on the Mac platform.
ival is a *int type, val is long int, the downcast is happening regardless, this just makes it explicit for LLVM (inc MacOS).