It's a narrowing conversion. Unfortunately, GCC doesn't warn about that (though Visual C++ does).