Fixed: 32bit windows compile error (#1698)

This commit is contained in:
NhKPaNdA 2024-10-04 21:47:14 +08:00 committed by GitHub
parent 3afcb04613
commit a35205f351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)