https://git.reactos.org/?p=reactos.git;a=commitdiff;h=959729f6eecc2b23fe5b56554cf9c61938dc4c1e

commit 959729f6eecc2b23fe5b56554cf9c61938dc4c1e
Author:     Victor Perevertkin <[email protected]>
AuthorDate: Fri Apr 9 03:54:25 2021 +0300
Commit:     Victor Perevertkin <[email protected]>
CommitDate: Fri Apr 9 03:54:25 2021 +0300

    [PC98VID] Fix clang 12 warning
---
 sdk/include/reactos/drivers/pc98/video.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sdk/include/reactos/drivers/pc98/video.h 
b/sdk/include/reactos/drivers/pc98/video.h
index f6188d2abe7..00db994f68a 100644
--- a/sdk/include/reactos/drivers/pc98/video.h
+++ b/sdk/include/reactos/drivers/pc98/video.h
@@ -185,10 +185,10 @@ FORCEINLINE
 VOID
 WRITE_GDC_CSRFORM(PUCHAR Port, PCSRFORMPARAM CursorParameters)
 {
-    WRITE_PORT_UCHAR(Port, ((CursorParameters->Show & 0x01) << 7) |
+    WRITE_PORT_UCHAR(Port, (((_Bool)CursorParameters->Show) << 7) |
                      (CursorParameters->LinesPerRow - 1));
     WRITE_PORT_UCHAR(Port, ((CursorParameters->BlinkRate & 0x03) << 6) |
-                     ((!CursorParameters->Blink & 0x01) << 5) | 
CursorParameters->StartScanLine);
+                     (((_Bool)CursorParameters->Blink) << 5) | 
CursorParameters->StartScanLine);
     WRITE_PORT_UCHAR(Port, (CursorParameters->EndScanLine << 3) | 
((CursorParameters->BlinkRate & 0x1C) >> 2));
 }
 

Reply via email to