On platforms with 32bit userspace, uintptr_t is 32bits so compiler complains about truncating a 64bit type to 32bits. This is basically the same casts we added in kdelibs to kjs.
Created attachment 11363 [details] fix warning by explicitly casting
Comment on attachment 11363 [details] fix warning by explicitly casting Looks fine. static_cast would be safer.
Created attachment 11364 [details] alternative fix This should fix the issue by eliminating runtime checks.
Comment on attachment 11364 [details] alternative fix I think Alexey's fix is better. r=me
Committed revision 17580. Here's hope that my fix actually helps :-)