Fixed -Wshorten-64-to-32 build error in KQueueArrayWrapper OCNI code (second attempt).
@@ -270,7 +270,7 @@ class KQueueArrayWrapper {
// Java timeout == -1 : wait forever : timespec timeout of NULL
// Java timeout == 0 : return immediately : timespec timeout of zero
if (timeout >= 0) {
- ts.tv_sec = timeout / 1000L;
+ ts.tv_sec = (long) (timeout / 1000);
ts.tv_nsec = (timeout % 1000L) * 1000000; //nanosec = 1 million millisec
tsp = &ts;
} else {
