diff --git a/core/Makefile b/core/Makefile index ebebe82b..47c2e058 100644 --- a/core/Makefile +++ b/core/Makefile @@ -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 \ diff --git a/core/smn_lang.cpp b/core/smn_lang.cpp index dff43339..da31706a 100644 --- a/core/smn_lang.cpp +++ b/core/smn_lang.cpp @@ -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'; }