diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-19 21:25:30 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-19 21:25:30 +0000 |
commit | df56992212c321b8547f2bdf1c83a48b296d629d (patch) | |
tree | b1e33f1b70a925bef7378112b6dbf8a21712636d /src/common/sql.c | |
parent | 15ec7e3b5d5221c388c4ee97ef2688820e7f9d4b (diff) | |
download | hercules-df56992212c321b8547f2bdf1c83a48b296d629d.tar.gz hercules-df56992212c321b8547f2bdf1c83a48b296d629d.tar.bz2 hercules-df56992212c321b8547f2bdf1c83a48b296d629d.tar.xz hercules-df56992212c321b8547f2bdf1c83a48b296d629d.zip |
* Various VC6-related fixes and tweaks. [Ai4rei]
- Fixed a typo in VC6 project files, that prevented login-server from compiling (bugreport:4061, since r12727).
- Fixed usage of 'long long' in Sql_P_BindSqlDataType preventing SQL VC6 projects from compiling (bugreport:1741, since r10779).
- Fixed usage of 'long long' in strtoull preventing VC6 projects from compiling (bugreport:4059, follow up to r14245).
- Made strtoull default to base 10 and actually process base 8, to match the normal behavior of this function (bugreport:4059, follow up to r14245).
- Fixed functions in db.c not being returned as pointer, causing warnings on VC6.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14466 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/sql.c')
-rw-r--r-- | src/common/sql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/sql.c b/src/common/sql.c index c0668d17c..f7c45c631 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -489,8 +489,8 @@ static int Sql_P_BindSqlDataType(MYSQL_BIND* bind, enum SqlDataType buffer_type, buffer_len = sizeof(long); break; case SQLDT_ULONGLONG: bind->is_unsigned = 1; - case SQLDT_LONGLONG: bind->buffer_type = Sql_P_SizeToMysqlIntType(sizeof(long long)); - buffer_len = sizeof(long long); + case SQLDT_LONGLONG: bind->buffer_type = Sql_P_SizeToMysqlIntType(sizeof(int64)); + buffer_len = sizeof(int64); break; // floating point case SQLDT_FLOAT: bind->buffer_type = MYSQL_TYPE_FLOAT; |