changeset 43247:8d242299a219

8173197: (se) WindowsSelectorImpl.c does not compile with VS2010 Reviewed-by: alanb, chegar
author clanger
date Mon, 23 Jan 2017 14:04:44 +0100
parents 253001fa0f60
children 5e15de85a1a0 6351c8545289 fe3858b549c8
files jdk/src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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