Sfoglia il codice sorgente

ENH: Cast into apropriate type to remove warning

Andy Cedilnik 22 anni fa
parent
commit
4bad15e4b2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Source/kwsys/ProcessWin32.c

+ 1 - 1
Source/kwsys/ProcessWin32.c

@@ -787,7 +787,7 @@ void kwsysProcess_Execute(kwsysProcess* cp)
   
   
   /* Decide whether a child window should be shown.  */
   /* Decide whether a child window should be shown.  */
   si.dwFlags |= STARTF_USESHOWWINDOW;
   si.dwFlags |= STARTF_USESHOWWINDOW;
-  si.wShowWindow = cp->HideWindow?SW_HIDE:SW_SHOWDEFAULT;
+  si.wShowWindow = (unsigned short)(cp->HideWindow?SW_HIDE:SW_SHOWDEFAULT);
   
   
   /* The timeout period starts now.  */
   /* The timeout period starts now.  */
   cp->StartTime = kwsysProcessTimeGetCurrent();
   cp->StartTime = kwsysProcessTimeGetCurrent();