fixed linux build

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402133
This commit is contained in:
David Anderson 2008-05-10 09:30:13 +00:00
parent c7418e70ba
commit 9a7c884c21
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ OBJECTS = AdminCache.cpp CDataPack.cpp ConCmdManager.cpp ConVarManager.cpp CoreC
sm_autonatives.cpp sm_memtable.cpp sm_srvcmds.cpp sm_stringutil.cpp sm_trie.cpp \
sourcemm_api.cpp sourcemod.cpp MenuStyle_Base.cpp MenuStyle_Valve.cpp MenuManager.cpp \
MenuStyle_Radio.cpp ChatTriggers.cpp ADTFactory.cpp MenuVoting.cpp sm_crc32.cpp \
frame_hooks.cpp concmd_cleaner.cpp Profiler.cpp
frame_hooks.cpp concmd_cleaner.cpp Profiler.cpp PhraseCollection.cpp
OBJECTS += smn_admin.cpp smn_bitbuffer.cpp smn_console.cpp smn_core.cpp \
smn_datapacks.cpp smn_entities.cpp smn_events.cpp smn_fakenatives.cpp \
smn_filesystem.cpp smn_float.cpp smn_functions.cpp smn_gameconfigs.cpp smn_halflife.cpp \

View File

@ -49,7 +49,7 @@ static cell_t sm_LoadTranslations(IPluginContext *pCtx, const cell_t *params)
|| (ext = strstr(buffer, ".cfg")) != NULL)
{
/* Simple heuristic -- just see if it's at the end and terminate if so */
if (ext - buffer == strlen(buffer) - 4)
if ((unsigned)(ext - buffer) == strlen(buffer) - 4)
{
*ext = '\0';
}