LWN.net Logo

Advertisement

E-Commerce & credit card processing - the Open Source way!

Advertise here

would using casts fix the problem?

would using casts fix the problem?

Posted Apr 16, 2008 19:40 UTC (Wed) by mb (subscriber, #50428)
In reply to: would using casts fix the problem? by roskegg
Parent article: GCC and pointer overflows

> So if I cast the pointers to long unsigned ints, would the second test THEN be optimized
away?

Some german news site stated a few days ago that it would not optimize it away then. They
proposed it as a possible workaround.


(Log in to post comments)

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds