fix previous commit
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index ea8c366..4524a8c 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -939,7 +939,7 @@
 
     ngx_http_perl_set_request(r);
 
-    sleep = SvIV(ST(1));
+    sleep = (ngx_msec_t) SvIV(ST(1));
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "perl sleep: %M", sleep);