Explorar o código

fix checking for scalar values

Julius Pfrommer %!s(int64=9) %!d(string=hai) anos
pai
achega
e4fb5a9404
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/ua_types.h

+ 1 - 1
include/ua_types.h

@@ -355,7 +355,7 @@ typedef struct {
  * @return Does the variant contain a scalar value.
  */
 static UA_INLINE UA_Boolean UA_Variant_isScalar(const UA_Variant *v) {
-    return (v->arrayLength == 0 && v->data >= UA_EMPTY_ARRAY_SENTINEL); }
+    return (v->arrayLength == 0 && v->data > UA_EMPTY_ARRAY_SENTINEL); }
     
 /**
  * Set the variant to a scalar value that already resides in memory. The value takes on the