[clang-warning-fix][invalid-narrowing-conversion]

Clang and MinGW complain about the 0xdfdfdfdf since they interpret it as an unsigned long. Expanded the hex literals and used C-style casts to match the style of the file.