diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 16:01:21 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 16:01:21 +0000 |
commit | f12b920c07c2138487c1a6fd4eec8273cc826cb9 (patch) | |
tree | e0326aba02d7fd7af868d7410f0c9efd9b0d33b8 | |
parent | 792c2dafc0ab0d982f9912fb7fe18cfbe2c64946 (diff) |
Cast value to long instead of int, shouldn't break any sane system, fixes warning on 64bit systems
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4841 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7d5cf6dc5..96518fe56 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -592,7 +592,7 @@ bool InspIRCd::LoadModule(const char* filename) snprintf(MODERR,MAXBUF,"Loader/Linker error: %s",factory[MODCOUNT+1]->LastError()); return false; } - if ((int)factory[MODCOUNT+1]->factory != -1) + if ((long)factory[MODCOUNT+1]->factory != -1) { Module* m = factory[MODCOUNT+1]->factory->CreateModule(MyServer); modules[MODCOUNT+1] = m; |