Avoid warning on narrowing conversion in C++-11.
Work around compile error on Fedora 17.

Possibly due to compiler bug.