Skip to content

Commit 5af96f8

Browse files
committed
Revert "More explicit typecasts."
This reverts commit 3fff4c5.
1 parent fb920a3 commit 5af96f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripting/methods.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10689,7 +10689,7 @@ set<string> errors;
1068910689

1069010690
if (lua_isnumber (App.m_SpellChecker_Lua, -1))
1069110691
{
10692-
SetUpVariantLong (vaResult, (long) lua_tonumber (App.m_SpellChecker_Lua, -1)); // no errors
10692+
SetUpVariantLong (vaResult, lua_tonumber (App.m_SpellChecker_Lua, -1)); // no errors
1069310693
return vaResult;
1069410694
}
1069510695

@@ -11802,7 +11802,7 @@ POSITION pos;
1180211802
if (!m_LineList.IsEmpty ())
1180311803
{
1180411804
m_pCurrentLine = m_LineList.GetTail ();
11805-
if (((m_pCurrentLine->flags & COMMENT) == 0) ||
11805+
if ((m_pCurrentLine->flags & COMMENT == 0) ||
1180611806
m_pCurrentLine->hard_return)
1180711807
m_pCurrentLine = NULL;
1180811808
}
@@ -11938,7 +11938,7 @@ BOOL CMUSHclientDoc::Transparency(long Key, short Amount)
1193811938
else if (Amount > MWT_MAX_FACTOR)
1193911939
Amount = MWT_MAX_FACTOR;
1194011940

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

1194411944

stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ enum { BLACK = 0, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE };
185185
#define PLURALES(arg) (arg), (arg) == 1 ? "" : "es"
186186

187187
// number of items in an array
188-
#define NUMITEMS(arg) ((unsigned int) (sizeof (arg) / sizeof (arg [0])))
188+
#define NUMITEMS(arg) (sizeof (arg) / sizeof (arg [0]))
189189

190190
#define DEFAULT_CHAT_PORT 4050
191191
#define DEFAULT_CHAT_NAME "Name-not-set"

0 commit comments

Comments
 (0)