Stasik0 9 年之前
父节点
当前提交
2c4852d44c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ua_types_encoding_binary.c

+ 1 - 1
src/ua_types_encoding_binary.c

@@ -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)
         return UA_STATUSCODE_BADDECODINGERROR;
     UA_UInt32 value = *((UA_UInt32*)&src->data[*offset]);
-#ifndef UA_NON_LITTLEENDIAN_ARCHITECTURE
+#ifdef UA_NON_LITTLEENDIAN_ARCHITECTURE
     value = le32toh(value);
 #endif
     *dst = value;