NBT: add compiler errors to the endian specific sections

BodgeMaster-unfinished
BodgeMaster 2022-07-02 16:41:54 +02:00
parent 664632d111
commit 044593e081
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,8 @@ namespace NBT {
*(valueAsBytes+1) = data[currentPosition+2]; *(valueAsBytes+1) = data[currentPosition+2];
*(valueAsBytes+2) = data[currentPosition+1]; *(valueAsBytes+2) = data[currentPosition+1];
*(valueAsBytes+3) = data[currentPosition]; *(valueAsBytes+3) = data[currentPosition];
#else
#error "NBT::helper::readFloat32: An implementation for your endianness is unavailable."
#endif #endif
#endif #endif
float dereferencedValue = *value; float dereferencedValue = *value;
@ -120,6 +122,8 @@ namespace NBT {
*(valueAsBytes+5) = data[currentPosition+2]; *(valueAsBytes+5) = data[currentPosition+2];
*(valueAsBytes+6) = data[currentPosition+1]; *(valueAsBytes+6) = data[currentPosition+1];
*(valueAsBytes+7) = data[currentPosition]; *(valueAsBytes+7) = data[currentPosition];
#else
#error "NBT::helper::readFloat64: An implementation for your endianness is unavailable."
#endif #endif
#endif #endif
double dereferencedValue = *value; double dereferencedValue = *value;