Fixed undeclared variable

Sorry about that. After rewriting this function, I noticed I didn't have TO_LITTLE_ENDIAN_64. So I just added it in without testing.