mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Have ConvNumeric correctly convert 0 to 0 instead of an empty string.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6278 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
d3472e07a1
commit
f1d7e1e544
@ -66,6 +66,7 @@ template<typename T> inline void DELETE(T* x)
|
||||
*/
|
||||
template<typename T> inline std::string ConvNumeric(const T &in)
|
||||
{
|
||||
if (in == 0) return "0";
|
||||
char res[MAXBUF];
|
||||
char* out = res;
|
||||
T quotient = in;
|
||||
|
Loading…
x
Reference in New Issue
Block a user