浏览代码

fix encoding under non-little endian

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

+ 2 - 2
src/ua_types_encoding_binary.c

@@ -286,7 +286,7 @@ static long double unpack754(uint64_t i, unsigned bits, unsigned expbits) {
 #define FLOAT_NEG_ZERO 0x80000000
 
 static UA_StatusCode
-Float_encodeBinary(UA_Float const *src, bufpos pos, bufend end) {
+Float_encodeBinary(UA_Float const *src, const UA_DataType *_, bufpos pos, bufend end) {
     UA_Float f = *src;
     UA_UInt32 encoded;
     //cppcheck-suppress duplicateExpression
@@ -299,7 +299,7 @@ Float_encodeBinary(UA_Float const *src, bufpos pos, bufend end) {
 }
 
 static UA_StatusCode
-Float_decodeBinary(bufpos pos, bufend end, UA_Float *dst) {
+Float_decodeBinary(bufpos pos, bufend end, UA_Float *dst, const UA_DataType *_) {
     UA_UInt32 decoded;
     UA_StatusCode retval = UInt32_decodeBinary(pos, end, &decoded, NULL);
     if(retval != UA_STATUSCODE_GOOD)