Skip to content

Commit

Permalink
More explicit typecasts.
Browse files Browse the repository at this point in the history
  • Loading branch information
worstje committed Sep 16, 2010
1 parent c043e3c commit 3fff4c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripting/methods.cpp
Expand Up @@ -10684,7 +10684,7 @@ set<string> errors;

if (lua_isnumber (App.m_SpellChecker_Lua, -1))
{
SetUpVariantLong (vaResult, lua_tonumber (App.m_SpellChecker_Lua, -1)); // no errors
SetUpVariantLong (vaResult, (long) lua_tonumber (App.m_SpellChecker_Lua, -1)); // no errors
return vaResult;
}

Expand Down Expand Up @@ -11797,7 +11797,7 @@ POSITION pos;
if (!m_LineList.IsEmpty ())
{
m_pCurrentLine = m_LineList.GetTail ();
if ((m_pCurrentLine->flags & COMMENT == 0) ||
if (((m_pCurrentLine->flags & COMMENT) == 0) ||
m_pCurrentLine->hard_return)
m_pCurrentLine = NULL;
}
Expand Down Expand Up @@ -11933,7 +11933,7 @@ BOOL CMUSHclientDoc::Transparency(long Key, short Amount)
else if (Amount > MWT_MAX_FACTOR)
Amount = MWT_MAX_FACTOR;

return MakeWindowTransparent (App.m_pMainWnd->m_hWnd, Key, Amount);
return MakeWindowTransparent (App.m_pMainWnd->m_hWnd, Key, (unsigned char) Amount);
}


Expand Down
2 changes: 1 addition & 1 deletion stdafx.h
Expand Up @@ -167,7 +167,7 @@ enum { BLACK = 0, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE };
#define PLURALES(arg) (arg), (arg) == 1 ? "" : "es"

// number of items in an array
#define NUMITEMS(arg) (sizeof (arg) / sizeof (arg [0]))
#define NUMITEMS(arg) ((unsigned int) (sizeof (arg) / sizeof (arg [0])))

#define DEFAULT_CHAT_PORT 4050
#define DEFAULT_CHAT_NAME "Name-not-set"
Expand Down

0 comments on commit 3fff4c5

Please sign in to comment.