> The fix is okay. However I wonder how you don't get the error in your environment and we got it. Any > idea? The cast is from an 8-bit value to 64-bit, then back to 16-bit, so there's no chance of losing data with the cast. Maybe the compiler got smarter?