my_ulong_long to unsigned long explicit

This commit is contained in:
Arthur Dene Ice 2014-05-10 14:33:24 -07:00
parent b07d3ee5c6
commit 8a63d64d9e
2 changed files with 4 additions and 4 deletions

View File

@ -31,11 +31,11 @@ unsigned int EQDB::field_count() {
}
unsigned long EQDB::affected_rows() {
return mysql_affected_rows(mysql_ref);
return (unsigned long)mysql_affected_rows(mysql_ref);
}
unsigned long EQDB::insert_id() {
return mysql_insert_id(mysql_ref);
return (unsigned long)mysql_insert_id(mysql_ref);
}
unsigned int EQDB::get_errno() {

View File

@ -32,8 +32,8 @@ public:
~EQDBRes() { finish(); }
//BEGIN PERL EXPORT
unsigned long num_rows() { return (res) ? mysql_num_rows(res) : 0; }
unsigned long num_fields() { return (res) ? mysql_num_fields(res) : 0; }
unsigned long num_rows() { return (res) ? (unsigned long)mysql_num_rows(res) : 0; }
unsigned long num_fields() { return (res) ? (unsigned long)mysql_num_fields(res) : 0; }
void DESTROY() { }
void finish() { if (res) mysql_free_result(res); res=nullptr; };
std::vector<std::string> fetch_row_array();