|
@@ -651,7 +651,7 @@ compatibleValueRankValue(UA_Int32 valueRank, const UA_Variant *value) {
|
|
|
return true;
|
|
|
|
|
|
size_t arrayDims = value->arrayDimensionsSize;
|
|
|
- if(!UA_Variant_isScalar(value))
|
|
|
+ if(arrayDims == 0 && !UA_Variant_isScalar(value))
|
|
|
arrayDims = 1; /* array but no arraydimensions -> implicit array dimension 1 */
|
|
|
return compatibleValueRankArrayDimensions(valueRank, arrayDims);
|
|
|
}
|