mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 07:28:32 +00:00
large number of my_ulong_long explicit conversions
This commit is contained in:
+2
-2
@@ -462,7 +462,7 @@ bool Database::DeleteCharacter(char *name)
|
||||
safe_delete_array(query);
|
||||
query = nullptr;
|
||||
}
|
||||
matches = mysql_num_rows(result);
|
||||
matches = (int)mysql_num_rows(result);
|
||||
if(matches == 1)
|
||||
{
|
||||
row = mysql_fetch_row(result);
|
||||
@@ -1019,7 +1019,7 @@ bool Database::LoadVariables_result(MYSQL_RES* result) {
|
||||
LockMutex lock(&Mvarcache);
|
||||
if (mysql_num_rows(result) > 0) {
|
||||
if (!varcache_array) {
|
||||
varcache_max = mysql_num_rows(result);
|
||||
varcache_max = (uint32)mysql_num_rows(result);
|
||||
varcache_array = new VarCache_Struct*[varcache_max];
|
||||
for (i=0; i<varcache_max; i++)
|
||||
varcache_array[i] = 0;
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ bool DBcore::RunQuery(const char* query, uint32 querylen, char* errbuf, MYSQL_RE
|
||||
else if (result)
|
||||
*result = 0;
|
||||
if (affected_rows)
|
||||
*affected_rows = mysql_affected_rows(&mysql);
|
||||
*affected_rows = (uint32)mysql_affected_rows(&mysql);
|
||||
if (last_insert_id)
|
||||
*last_insert_id = mysql_insert_id(&mysql);
|
||||
if (result) {
|
||||
|
||||
+2
-2
@@ -151,7 +151,7 @@ bool PersistentTimer::Load(Database *db) {
|
||||
safe_delete_array(query);
|
||||
|
||||
bool res = false;
|
||||
qcount = mysql_num_rows(result);
|
||||
qcount = (uint32)mysql_num_rows(result);
|
||||
if(qcount == 1 && (row = mysql_fetch_row(result)) ) {
|
||||
start_time = strtoul(row[0], nullptr, 10);
|
||||
timer_time = strtoul(row[1], nullptr, 10);
|
||||
@@ -337,7 +337,7 @@ bool PTimerList::Load(Database *db) {
|
||||
bool enabled;
|
||||
|
||||
PersistentTimer *cur;
|
||||
qcount = mysql_num_rows(result);
|
||||
qcount = (uint32)mysql_num_rows(result);
|
||||
while((row = mysql_fetch_row(result)) ) {
|
||||
type = atoi(row[0]);
|
||||
start_time = strtoul(row[1], nullptr, 10);
|
||||
|
||||
Reference in New Issue
Block a user