1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-30 23:23:07 +00:00

More updates to windows build.

This commit is contained in:
Calvin Rose
2024-08-17 10:21:50 -05:00
parent 84d43d1039
commit 70c29b4e5d
3 changed files with 10 additions and 3 deletions

View File

@@ -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;