NBT: add compiler errors to the endian specific sections
parent
664632d111
commit
044593e081
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue