From d8c02c294f4da5baf2a1ac7684c9d477684f3487 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 11 Mar 2007 18:37:55 +0000 Subject: [PATCH] fixed linux build --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40602 --- core/Makefile | 5 ++--- core/vm/sp_vm_function.cpp | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/Makefile b/core/Makefile index 7d744920..d9669fb5 100644 --- a/core/Makefile +++ b/core/Makefile @@ -20,8 +20,7 @@ HL2PUB = $(HL2SDK)/public HL2LIB = $(HL2SDK)/linux_sdk OBJECTS = sourcemm_api.cpp sourcemod.cpp AdminCache.cpp ConVarManager.cpp CDataPack.cpp \ - CDbgReporter.cpp CLogger.cpp CPlayerManager.cpp CTextParsers.cpp CTranslator.cpp \ - ConCmdManager.cpp \ + DebugReporter.cpp Logger.cpp PlayerManager.cpp TextParsers.cpp Translator.cpp \ sm_autonatives.cpp sm_memtable.cpp sm_srvcmds.cpp sm_trie.cpp \ sm_stringutil.cpp smn_filesystem.cpp smn_float.cpp smn_handles.cpp \ smn_player.cpp smn_string.cpp smn_textparse.cpp smn_console.cpp smn_admin.cpp \ @@ -29,7 +28,7 @@ OBJECTS = sourcemm_api.cpp sourcemod.cpp AdminCache.cpp ConVarManager.cpp CDataP systems/ExtensionSys.cpp systems/ForwardSys.cpp systems/HandleSys.cpp \ systems/LibrarySys.cpp systems/PluginInfoDatabase.cpp \ systems/PluginSys.cpp systems/ShareSys.cpp vm/sp_vm_basecontext.cpp \ - vm/sp_vm_engine.cpp vm/sp_vm_function.cpp + vm/sp_vm_engine.cpp vm/sp_vm_function.cpp ConCmdManager.cpp TimerSys.cpp OBJECTS_C = zlib/adler32.c zlib/compress.c zlib/crc32.c zlib/deflate.c zlib/gzio.c \ zlib/infback.c zlib/inffast.c zlib/inflate.c zlib/inftrees.c zlib/trees.c \ zlib/uncompr.c zlib/zutil.c diff --git a/core/vm/sp_vm_function.cpp b/core/vm/sp_vm_function.cpp index 9ee3d29a..3bd995f6 100644 --- a/core/vm/sp_vm_function.cpp +++ b/core/vm/sp_vm_function.cpp @@ -139,7 +139,6 @@ int CFunction::_PushString(const char *string, int sz_flags, int cp_flags, size_ } ParamInfo *info = &m_info[m_curparam]; - size_t cells = (len + sizeof(cell_t) - 1) / sizeof(cell_t); info->marked = true; info->orig_addr = (cell_t *)string;