8173197: (se) WindowsSelectorImpl.c does not compile with VS2010
authorclanger
Mon, 23 Jan 2017 14:04:44 +0100
changeset 43247 8d242299a219
parent 43246 253001fa0f60
child 43248 5e15de85a1a0
child 43320 6351c8545289
child 43537 fe3858b549c8
8173197: (se) WindowsSelectorImpl.c does not compile with VS2010 Reviewed-by: alanb, chegar
jdk/src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c
--- a/jdk/src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c	Mon Jan 23 07:36:05 2017 -0500
+++ b/jdk/src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c	Mon Jan 23 14:04:44 2017 +0100
@@ -75,8 +75,8 @@
     } else if (timeout < 0) {
         tv = NULL;
     } else {
+        jlong sec = timeout / 1000;
         tv = &timevalue;
-        jlong sec = timeout / 1000;
         //
         // struct timeval members are signed 32-bit integers so the
         // signed 64-bit jlong needs to be clamped