Skip to content

Commit dc9164d

Browse files
committed
re-fix some compiler warnings
1 parent e7924df commit dc9164d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysql2/result.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static VALUE rb_mysql_result_fetch_row(VALUE self, ID db_timezone, ID app_timezo
9595
mysql2_result_wrapper * wrapper;
9696
MYSQL_ROW row;
9797
MYSQL_FIELD * fields = NULL;
98-
long i = 0;
98+
unsigned int i = 0;
9999
unsigned long * fieldLengths;
100100
void * ptr;
101101

@@ -286,7 +286,7 @@ static VALUE rb_mysql_result_fetch_row(VALUE self, ID db_timezone, ID app_timezo
286286

287287
static VALUE rb_mysql_result_fetch_fields(VALUE self) {
288288
mysql2_result_wrapper * wrapper;
289-
long i = 0;
289+
unsigned int i = 0;
290290
short int symbolizeKeys = 0;
291291
VALUE defaults;
292292

0 commit comments

Comments
 (0)