소스 검색

cosmetic improvements

Julius Pfrommer 8 년 전
부모
커밋
69ecb55a8b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/ua_types.c

+ 1 - 1
src/ua_types.c

@@ -292,7 +292,7 @@ UA_NodeId_hash(const UA_NodeId *n) {
         return (UA_UInt32)(n->namespaceIndex + (n->identifier.numeric * 2654435761)); /*  Knuth's multiplicative hashing */
     case UA_NODEIDTYPE_STRING:
     case UA_NODEIDTYPE_BYTESTRING:
-        return fnv32(n->namespaceIndex, n->identifier.string.data, (UA_UInt32)n->identifier.string.length);
+        return fnv32(n->namespaceIndex, n->identifier.string.data, n->identifier.string.length);
     case UA_NODEIDTYPE_GUID:
         return fnv32(n->namespaceIndex, (const UA_Byte*)&n->identifier.guid, sizeof(UA_Guid));
     }