Permalink
Browse files

More warning fixes, most dealing with signed/unsigned in some way.

  • Loading branch information...
1 parent 533b31f commit 303f440a8f3c2ec4edfd842cb7326b1c952b8480 @worstje worstje committed Sep 16, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 dialogs/DebugWorldInputDlg.cpp
  2. +1 −1 miniwindow.cpp
  3. +1 −1 stdafx.h
@@ -208,7 +208,7 @@ CInsertUnicodeDlg dlg;
unsigned char utf8 [10];
-int iLen = _pcre_ord2utf8 (dlg.m_iCode, utf8);
+int iLen = _pcre_ord2utf8 ((int) dlg.m_iCode, utf8);
CString strText;
View
@@ -1293,7 +1293,7 @@ long CMiniWindow::WritePng (LPCTSTR FileName, const BITMAPINFO * bmi, unsigned c
long bpl = BytesPerLine (bmi->bmiHeader.biWidth, 24);
- long row;
+ unsigned long row;
unsigned char * p = pData;
// have to reverse row order
View
@@ -856,7 +856,7 @@ int myAtoF(const char *z, double *pResult);
// colour stuff
-#define CLAMP(x) (((x) < 0) ? 0 : (x > 255) ? 255 : (x))
+#define CLAMP(x) (((x) < 0) ? 0 : (x > 255) ? 255 : (unsigned char) (x))
// see: http://www.nathanm.com/photoshop-blending-math/

0 comments on commit 303f440

Please sign in to comment.