|
@@ -202,7 +202,7 @@ UA_StatusCode UA_UInt32_decodeBinary(UA_ByteString const *src, size_t *UA_RESTRI
|
|
if((UA_Int32)(*offset + sizeof(UA_UInt32)) > src->length)
|
|
if((UA_Int32)(*offset + sizeof(UA_UInt32)) > src->length)
|
|
return UA_STATUSCODE_BADDECODINGERROR;
|
|
return UA_STATUSCODE_BADDECODINGERROR;
|
|
UA_UInt32 value = *((UA_UInt32*)&src->data[*offset]);
|
|
UA_UInt32 value = *((UA_UInt32*)&src->data[*offset]);
|
|
-#ifndef UA_NON_LITTLEENDIAN_ARCHITECTURE
|
|
|
|
|
|
+#ifdef UA_NON_LITTLEENDIAN_ARCHITECTURE
|
|
value = le32toh(value);
|
|
value = le32toh(value);
|
|
#endif
|
|
#endif
|
|
*dst = value;
|
|
*dst = value;
|