changeset 16555:fb36a29be4a3

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 3b9c8ef4b153
children 7396ce69df70 ccf1ccb7adf9 955d8b6ded80
files src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c	Mon Jan 23 07:36:05 2017 -0500
+++ b/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