Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct two empty if statement warnings clang catches

  • Loading branch information...
commit 9c52352ad8b601377d39ff719027d2c3f2891873 1 parent 99cca1b
@michaelklishin authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 ext/rubymain.cpp
View
6 ext/rubymain.cpp
@@ -430,8 +430,9 @@ t_set_comm_inactivity_timeout
static VALUE t_set_comm_inactivity_timeout (VALUE self, VALUE signature, VALUE timeout)
{
float ti = RFLOAT_VALUE(timeout);
- if (evma_set_comm_inactivity_timeout (NUM2ULONG (signature), ti));
+ if (evma_set_comm_inactivity_timeout(NUM2ULONG(signature), ti)) {
return Qtrue;
+ }
return Qfalse;
}
@@ -451,8 +452,9 @@ t_set_pending_connect_timeout
static VALUE t_set_pending_connect_timeout (VALUE self, VALUE signature, VALUE timeout)
{
float ti = RFLOAT_VALUE(timeout);
- if (evma_set_pending_connect_timeout (NUM2ULONG (signature), ti));
+ if (evma_set_pending_connect_timeout(NUM2ULONG(signature), ti)) {
return Qtrue;
+ }
return Qfalse;
}
Please sign in to comment.
Something went wrong with that request. Please try again.