Hi Tibor, > Is it a gcc-issue? or I forget to add some -Wxxx switches? Or gcc > should't [warn] me in case of uintptr_t to <some small> cast? GCC shouldn't warn you in case of uintptr_t to <some small> cast. That's valid C. Unfortunately, in my opinion. But that's what we have. If you want a language with less implicit conversions (especially bigger types into smaller ones), C is not the language. If you were using C++, and using Boost, you could use the numeric casts to make sure the larger value is actually in range of the smaller. If I'm mistaken, and there is a GCC warning for this sort of thing, I'd be most interested to be corrected & educated! HTH, --Eljay