A
Alexandru Mosoi
Hi
Recently I've made a stupid bug. Here is a snippet:
long long a, b;
....
int c = min(a, b);
But this bug could have been prevented if g++ would warn me about loss
of precision. Do you know any flag that can turn on this kind of
warning? I tried -Wconversion, but I believe it's working only on
float <-> double conversion.
Alexandru
Recently I've made a stupid bug. Here is a snippet:
long long a, b;
....
int c = min(a, b);
But this bug could have been prevented if g++ would warn me about loss
of precision. Do you know any flag that can turn on this kind of
warning? I tried -Wconversion, but I believe it's working only on
float <-> double conversion.
Alexandru