compiler warnings are annoying

This commit is contained in:
Brian Lopez 2010-11-27 14:56:05 -08:00
parent 66f595a406
commit 52f62c8b44
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ static VALUE rb_mysql_client_query(int argc, VALUE * argv, VALUE self) {
if (sec >= 0) { if (sec >= 0) {
tvp->tv_sec = sec; tvp->tv_sec = sec;
} else { } else {
rb_raise(cMysql2Error, "read_timeout must be a positive integer, you passed %d", sec); rb_raise(cMysql2Error, "read_timeout must be a positive integer, you passed %ld", sec);
} }
tvp->tv_usec = 0; tvp->tv_usec = 0;
} }