about summary refs log tree commit homepage
path: root/ext/posix_mq/posix_mq.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-14 07:44:18 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-14 07:44:18 +0000
commitb5bee9559dadcbe6a5669faac98d3201954c0606 (patch)
tree2e8657c12945307009e25477bae70b252cd62632 /ext/posix_mq/posix_mq.c
parent67d7da847965079367c325b876ed36e7bc5e25c1 (diff)
downloadruby_posix_mq-b5bee9559dadcbe6a5669faac98d3201954c0606.tar.gz
Oops
Diffstat (limited to 'ext/posix_mq/posix_mq.c')
-rw-r--r--ext/posix_mq/posix_mq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c
index 7aa426a..75b38e4 100644
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -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: {