mirror of
https://github.com/janet-lang/janet
synced 2025-12-04 07:38:09 +00:00
More updates to windows build.
This commit is contained in:
@@ -448,7 +448,12 @@ JANET_CORE_FN(janet_core_range,
|
||||
count = stop;
|
||||
}
|
||||
count = (count > 0) ? count : 0;
|
||||
int32_t int_count = ceil(count);
|
||||
int32_t int_count;
|
||||
if (count > (double) INT32_MAX) {
|
||||
int_count = INT32_MAX;
|
||||
} else {
|
||||
int_count = (int32_t) ceil(count);
|
||||
}
|
||||
if (step > 0.0) {
|
||||
janet_assert(start + int_count * step >= stop, "bad range code");
|
||||
} else {
|
||||
|
||||
@@ -353,8 +353,8 @@ static void watcher_callback_read(JanetFiber *fiber, JanetAsyncEvent event) {
|
||||
}
|
||||
|
||||
static void janet_watcher_listen(JanetWatcher *watcher) {
|
||||
for (int32_t i = 0; i < watcher.watch_descriptors.capacity; i++) {
|
||||
const JanetKV *kv = watcher.watch_descriptors.items + i;
|
||||
for (int32_t i = 0; i < watcher->watch_descriptors.capacity; i++) {
|
||||
const JanetKV *kv = watcher->watch_descriptors.items + i;
|
||||
if (!janet_checktype(kv->key, JANET_POINTER)) continue;
|
||||
OverlappedWatch *ow = janet_unwrap_pointer(kv->key);
|
||||
Janet pathv = kv->value;
|
||||
|
||||
Reference in New Issue
Block a user