mirror of
https://github.com/dazedcat19/FMD2.git
synced 2025-02-20 12:01:37 +00:00
Fixed: 32bit windows compile error (#1698)
This commit is contained in:
parent
3afcb04613
commit
a35205f351
@ -254,7 +254,11 @@ function TXQueryEngineHTML.Eval(const Expression: String; const isCSS: Boolean;
|
||||
begin
|
||||
Result := xqvalue();
|
||||
try
|
||||
if Pointer(ContextItem) <> nil then //Assigned(ContextItem)
|
||||
{$IFDEF CPU64} // For 64-bit mode, use Pointer to compare
|
||||
if Pointer(ContextItem) <> nil then
|
||||
{$ELSE} // For 32-bit mode, use a workaround or custom check
|
||||
if ContextItem.toBoolean then
|
||||
{$ENDIF} //Assigned(ContextItem)
|
||||
begin
|
||||
if isCSS then
|
||||
Result := FEngine.evaluateCSS3(Expression, ContextItem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user