lib/javacompat: Make the endianness error message refer to the correct function

Soda
BodgeMaster 2022-08-15 02:06:26 +02:00
parent c9ec524db1
commit 3995e97f03
1 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ namespace JavaCompat {
output.push_back(stdString[i]); output.push_back(stdString[i]);
} }
//FIXME: endian-dependent implementation
#ifdef FOSSVG_BIG_ENDIAN #ifdef FOSSVG_BIG_ENDIAN
output[0] = *sizeBytes; output[0] = *sizeBytes;
output[1] = *(sizeBytes+1); output[1] = *(sizeBytes+1);
@ -83,7 +84,7 @@ namespace JavaCompat {
output[0] = *(sizeBytes+1); output[0] = *(sizeBytes+1);
output[1] = *sizeBytes; output[1] = *sizeBytes;
#else #else
#error "NBT::helper::writeInt16: An implementation for your endianness is unavailable." #error "JavaCompat::exportJavaString: An implementation for your endianness is unavailable."
#endif #endif
#endif #endif