num2timespec: remove needless double-assignment
authorEric Wong <normalperson@yhbt.net>
Tue, 14 Jun 2011 07:44:18 +0000 (14 07:44 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 14 Jun 2011 07:44:18 +0000 (14 07:44 +0000)
Oops

ext/posix_mq/posix_mq.c

index 7aa426a..75b38e4 100644 (file)
@@ -185,7 +185,6 @@ static void num2timespec(struct timespec *ts, VALUE t)
                ts->tv_sec = (time_t)f;
                if (f != ts->tv_sec)
                        rb_raise(rb_eRangeError, "%f out of range", val);
-               ts->tv_sec = (time_t)f;
                }
                break;
        default: {