Skip to content
This repository
  • 15 commits
  • 3 files changed
  • 0 comments
  • 2 contributors
4  scripting/methods.cpp
@@ -11802,7 +11802,7 @@ POSITION pos;
11802 11802
   if (!m_LineList.IsEmpty ())
11803 11803
     {
11804 11804
     m_pCurrentLine = m_LineList.GetTail ();
11805  
-    if ((m_pCurrentLine->flags & COMMENT == 0) ||
  11805
+    if (((m_pCurrentLine->flags & COMMENT) == 0) ||
11806 11806
         m_pCurrentLine->hard_return)
11807 11807
         m_pCurrentLine = NULL;
11808 11808
     }
@@ -11938,7 +11938,7 @@ BOOL CMUSHclientDoc::Transparency(long Key, short Amount)
11938 11938
   else if (Amount > MWT_MAX_FACTOR)
11939 11939
     Amount = MWT_MAX_FACTOR;
11940 11940
 
11941  
-  return MakeWindowTransparent (App.m_pMainWnd->m_hWnd, Key, Amount);
  11941
+  return MakeWindowTransparent (App.m_pMainWnd->m_hWnd, Key, (unsigned char) Amount);
11942 11942
 }
11943 11943
 
11944 11944
 
2  scripting/number.c
@@ -36,10 +36,10 @@
36 36
 
37 37
 #include <stdio.h>
38 38
 #include "bcconfig.h"
39  
-#include "number.h"
40 39
 #include <assert.h>
41 40
 #include <stdlib.h>
42 41
 #include <ctype.h>/* Prototypes needed for external utility routines. */
  42
+#include "number.h"
43 43
 
44 44
 #define bc_rt_warn rt_warn
45 45
 #define bc_rt_error rt_error
2  stdafx.h
@@ -185,7 +185,7 @@ enum { BLACK = 0, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE };
185 185
 #define PLURALES(arg) (arg), (arg) == 1 ? "" : "es"
186 186
 
187 187
 // number of items in an array
188  
-#define NUMITEMS(arg) (sizeof (arg) / sizeof (arg [0]))
  188
+#define NUMITEMS(arg) ((unsigned int) (sizeof (arg) / sizeof (arg [0])))
189 189
 
190 190
 #define DEFAULT_CHAT_PORT 4050
191 191
 #define DEFAULT_CHAT_NAME "Name-not-set"

No commit comments for this range

Something went wrong with that request. Please try again.