mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed a couple issues with gcc
This commit is contained in:
parent
722cd23065
commit
51caf26399
@ -891,8 +891,10 @@ int CLangMngr::MergeDefinitionFile(const char *file)
|
|||||||
if (pos > String::npos)
|
if (pos > String::npos)
|
||||||
{
|
{
|
||||||
tmpEntry = new sKeyDef;
|
tmpEntry = new sKeyDef;
|
||||||
String key = buf.substr(0, pos);
|
String key;
|
||||||
String def = buf.substr(pos+1);
|
key.assign(buf.substr(0, pos).c_str());
|
||||||
|
String def;
|
||||||
|
def.assign(buf.substr(pos+1).c_str());
|
||||||
key.trim();
|
key.trim();
|
||||||
key.toLower();
|
key.toLower();
|
||||||
int iKey = GetKeyEntry(key);
|
int iKey = GetKeyEntry(key);
|
||||||
@ -909,7 +911,8 @@ int CLangMngr::MergeDefinitionFile(const char *file)
|
|||||||
if (pos > String::npos)
|
if (pos > String::npos)
|
||||||
{
|
{
|
||||||
tmpEntry = new sKeyDef;
|
tmpEntry = new sKeyDef;
|
||||||
String key = buf.substr(0, pos);
|
String key;
|
||||||
|
key.assign(buf.substr(0, pos).c_str());;
|
||||||
key.trim();
|
key.trim();
|
||||||
key.toLower();
|
key.toLower();
|
||||||
int iKey = GetKeyEntry(key);
|
int iKey = GetKeyEntry(key);
|
||||||
|
@ -359,7 +359,7 @@ public:
|
|||||||
|
|
||||||
int at(int a)
|
int at(int a)
|
||||||
{
|
{
|
||||||
if (at < 0 || at >= (int)cSize)
|
if (a < 0 || a >= (int)cSize)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return v[a];
|
return v[a];
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined __LCC__
|
#if defined __LCC__ || defined __linux__
|
||||||
#include <wchar.h> /* for wcslen() */
|
#include <wchar.h> /* for wcslen() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user