]> source.dussan.org Git - tigervnc.git/commitdiff
Explicit cast of -1 to UINT, to silence GCC warnings, but still adhere
authorPeter Åstrand <astrand@cendio.se>
Thu, 11 Dec 2008 08:27:52 +0000 (08:27 +0000)
committerPeter Åstrand <astrand@cendio.se>
Thu, 11 Dec 2008 08:27:52 +0000 (08:27 +0000)
to the strange win32 API.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3376 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/vncviewer/CConn.cxx

index 74d681881ef68cb69e285aa4d5c446a08c9470c3..1f4bbc2b33cae303d67d60c9fd5f1c4b35966ffa 100644 (file)
@@ -436,7 +436,7 @@ CConn::setColourMapEntries(int first, int count, U16* rgbs) {
 void
 CConn::bell() {
   if (options.acceptBell)
-    MessageBeep(-1);
+    MessageBeep((UINT)-1);
 }