From 52f62c8b44ab6c6b4f0ab60c4cca1ab6d5feb2e8 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Sat, 27 Nov 2010 14:56:05 -0800 Subject: [PATCH] compiler warnings are annoying --- ext/mysql2/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysql2/client.c b/ext/mysql2/client.c index c88dcaf..393e3e3 100644 --- a/ext/mysql2/client.c +++ b/ext/mysql2/client.c @@ -315,7 +315,7 @@ static VALUE rb_mysql_client_query(int argc, VALUE * argv, VALUE self) { if (sec >= 0) { tvp->tv_sec = sec; } 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; }