@@ -315,24 +315,24 @@ function TExpress.GetVar(const AName: string): Variant;
315315 xtAnsiChar: Result := PAnsiChar(ptr)^;
316316 xtAnsiString: Result := PAnsiString(ptr)^;
317317 else
318- Result := Integer (ptr);
318+ Result := PtrUInt (ptr);
319319 end ;
320320 end ;
321321end ;
322322
323323function TExpress.XprTypeFromVariant (const AValue: Variant): XType;
324324begin
325325 case VarType(AValue) of
326- varByte: Result := Context.GetType(xtUInt8);
327- varWord: Result := Context.GetType(xtUInt16);
326+ varByte: Result := Context.GetType(xtUInt8);
327+ varWord: Result := Context.GetType(xtUInt16);
328328 varLongWord: Result := Context.GetType(xtUInt32);
329- varUInt64: Result := Context.GetType(xtUInt64);
329+ varUInt64: Result := Context.GetType(xtUInt64);
330330 varSmallint: Result := Context.GetType(xtInt16);
331- varInteger: Result := Context.GetType(xtInt32);
332- varInt64: Result := Context.GetType(xtInt64);
333- varSingle: Result := Context.GetType(xtSingle);
334- varDouble: Result := Context.GetType(xtDouble);
335- varBoolean: Result := Context.GetType(xtBoolean);
331+ varInteger: Result := Context.GetType(xtInt32);
332+ varInt64: Result := Context.GetType(xtInt64);
333+ varSingle: Result := Context.GetType(xtSingle);
334+ varDouble: Result := Context.GetType(xtDouble);
335+ varBoolean: Result := Context.GetType(xtBoolean);
336336 varOleStr, varString:
337337 begin
338338 if Length(AValue) = 1 then
0 commit comments