From 3d41e0923b5e93ff9f33034b465c8d4719580f1b Mon Sep 17 00:00:00 2001 From: marcoonthegit Date: Sun, 9 Jun 2024 11:38:00 +0200 Subject: [PATCH] * silence some warnings --- packages/chm/src/chmwriter.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/chm/src/chmwriter.pas b/packages/chm/src/chmwriter.pas index 9241fa353e..d5b89d597c 100644 --- a/packages/chm/src/chmwriter.pas +++ b/packages/chm/src/chmwriter.pas @@ -1213,13 +1213,13 @@ begin // 20 The value of the Background param of the "text/site properties" object of the sitemap contents if assigned(ftocsm) then - FIDXHdrStream.writedwordLE(ftocsm.Backgroundcolor) + FIDXHdrStream.writedwordLE(dword(ftocsm.Backgroundcolor)) else FIDXHdrStream.writedwordLE($FFFFFFFF); // 24 The value of the Foreground param of the "text/site properties" object of the sitemap contents if assigned(ftocsm) then - FIDXHdrStream.writedwordLE(ftocsm.Foregroundcolor) + FIDXHdrStream.writedwordLE(dword(ftocsm.Foregroundcolor)) else FIDXHdrStream.writedwordLE($FFFFFFFF); @@ -1237,7 +1237,7 @@ begin // 30 The value of the EXWindow Styles param of the "text/site properties" object of the sitemap contents if assigned(ftocsm) then - FIDXHdrStream.writedwordLE(FTocSm.ExWindowStyles) + FIDXHdrStream.writedwordLE(dword(FTocSm.ExWindowStyles)) else FIDXHdrStream.writedwordLE(0);