Skip to content

Commit

Permalink
Return bool from _mysql_client_options.
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Aug 1, 2012
1 parent 39947e1 commit 50745cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mysql2/client.c
Expand Up @@ -638,7 +638,7 @@ static VALUE _mysql_client_options(VALUE self, int opt, VALUE value) {
wrapper->reconnect_enabled = boolval;
}

return INT2NUM(result == 0);
return (result == 0) ? Qtrue : Qfalse;
}

static VALUE rb_mysql_client_options(VALUE self, VALUE option, VALUE value) {
Expand Down

0 comments on commit 50745cf

Please sign in to comment.