Τρίτη 22 Δεκεμβρίου 2009

cast from 'void*' to 'int' loses precision

Irritating message, it happens because:

int a = sizeof(b)

is bad, where:

size_t a = sizeof(b)

is better.

So if you happen to try to compile something and it gives you this message, try to figure out what tries to make it an int and change it to a size_t.


Δεν υπάρχουν σχόλια: