unary minus operator applied to unsigned type, result still unsigned
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
This warning from post title is more an information than a warning:
unary minus operator applied to unsigned type, result still unsigned
but is signaled here:static long long var = -sizeof(buffer) - 1; // <-- warning C4146: unary minus operator applied to unsigned type, result still unsigned
Still, how can I rid of this warning ?