Skip to content

Commit 303f440

Browse files
committed
More warning fixes, most dealing with signed/unsigned in some way.
1 parent 533b31f commit 303f440

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dialogs/DebugWorldInputDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ CInsertUnicodeDlg dlg;
208208

209209
unsigned char utf8 [10];
210210

211-
int iLen = _pcre_ord2utf8 (dlg.m_iCode, utf8);
211+
int iLen = _pcre_ord2utf8 ((int) dlg.m_iCode, utf8);
212212

213213

214214
CString strText;

miniwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ long CMiniWindow::WritePng (LPCTSTR FileName, const BITMAPINFO * bmi, unsigned c
12931293

12941294
long bpl = BytesPerLine (bmi->bmiHeader.biWidth, 24);
12951295

1296-
long row;
1296+
unsigned long row;
12971297
unsigned char * p = pData;
12981298

12991299
// have to reverse row order

stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ int myAtoF(const char *z, double *pResult);
856856

857857
// colour stuff
858858

859-
#define CLAMP(x) (((x) < 0) ? 0 : (x > 255) ? 255 : (x))
859+
#define CLAMP(x) (((x) < 0) ? 0 : (x > 255) ? 255 : (unsigned char) (x))
860860

861861

862862
// see: http://www.nathanm.com/photoshop-blending-math/

0 commit comments

Comments
 (0)