Browse Source

* fixed range error introduced in r13213

git-svn-id: trunk@13328 -
Jonas Maebe 16 years ago
parent
commit
9c280eae26
1 changed files with 3 additions and 1 deletions
  1. 3 1
      rtl/inc/variants.pp

+ 3 - 1
rtl/inc/variants.pp

@@ -3770,7 +3770,9 @@ end;
 function TCustomVariantType.VarDataIsStr(const V: TVarData): Boolean;
 
 begin
-   Result:=(V.vType and varTypeMask) in [varOleStr,varString];
+   Result:=
+     ((V.vType and varTypeMask) = varOleStr) or
+     ((V.vType and varTypeMask) = varString);
 end;