Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is what compilers do nowadays to warn about _possible_problems. If the code works and the values do not really overflow (note that the compuler does not kniw about that), you can add casts (to int, not intptr_t as it is a pointer type) or just suppress the warnings with #pragma warning(disable: 26451) at the top of the file or by some setting in the IDE.