* Temporary fix for bugreport:4961 (unintended conversion from signed to unsigned).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14896 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
flaviojs
2011-07-10 13:28:49 +00:00
parent 4d6e77c875
commit 2ca6ba676f
2 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
Date Added
2011/07/10
* Temporary fix for bugreport:4961 (unintended conversion from signed to unsigned). [FlavioJS]
2011/07/09
* Added script command 'getmercinfo' for retrieving information about a mercenary of an online character. [Ai4rei]
* CMake: added search for math library, made CPack existence optional, updated the search for mysqlclient and corrected misspelled variables (tested with FreeBSD-8.2-i386) [FlavioJS]

View File

@@ -81,6 +81,16 @@
#include <stdint.h>
#include <limits.h>
// temporary fix for bugreport:4961 (unintended conversion from signed to unsigned)
// (-20 >= UCHAR_MAX) returns true
// (-20 >= USHRT_MAX) returns true
#if defined(__FreeBSD__) && defined(__x86_64)
#undef UCHAR_MAX
#define UCHAR_MAX (unsigned char)0xff
#undef USHRT_MAX
#define USHRT_MAX (unsigned short)0xffff
#endif
// ILP64 isn't supported, so always 32 bits?
#ifndef UINT_MAX
#define UINT_MAX 0xffffffff