Jakob Kroeker says adding a static cast can help an old version of gcc, so I added it