fix compile warnings

This commit is contained in:
ehouse 2005-06-23 14:12:09 +00:00
parent 2fbfeee378
commit f6a6827c59
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ loadLettersList( HWND hDlg, BlankDialogState* bState )
{
XP_U16 i;
XP_U16 nTiles = bState->nTiles;
XP_UCHAR4* texts = bState->texts;
const XP_UCHAR4* texts = bState->texts;
for ( i = 0; i < nTiles; ++i ) {
XP_U16 len;
@ -49,7 +49,7 @@ static void
showCurTray( HWND hDlg, BlankDialogState* bState )
{
if ( bState->pi->why == PICK_FOR_CHEAT ) {
PickInfo* pi = bState->pi;
const PickInfo* pi = bState->pi;
XP_U16 lenSoFar = 0;
XP_U16 i;
XP_UCHAR labelBuf[48];

View file

@ -729,9 +729,9 @@ ce_draw_measureMiniWText( DrawCtx* p_dctx, XP_UCHAR* str,
widebuf[len] = 0;
GetTextExtentPoint32( hdc, widebuf, wcslen(widebuf), &size );
maxWidth = XP_MAX( maxWidth, size.cx );
maxWidth = (XP_U16)XP_MAX( maxWidth, size.cx );
height += size.cy + CE_INTERLINE_SPACE;
dctx->miniLineHt = size.cy;
dctx->miniLineHt = (XP_U16)size.cy;
if ( nextStr == NULL ) {
break;