Skip to content

Commit 551d125

Browse files
committed
fix: restore linux watcher build
1 parent 1d2732e commit 551d125

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/swift.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [macos-latest]
15+
os: [macos-latest, ubuntu-latest]
1616
swift: ["6.0"]
1717
steps:
1818
- uses: actions/checkout@v4
@@ -26,4 +26,4 @@ jobs:
2626
run: swift build
2727

2828
- name: Run Tests
29-
run: swift test --enable-code-coverage
29+
run: swift test --enable-code-coverage

Sources/STFilePath/DispatchSourceWatcher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ final class DispatchSourceWatcher: WatcherBackend, @unchecked Sendable {
139139

140140
source.setCancelHandler { [fileDescriptor, watchDescriptor] in
141141
if watchDescriptor >= 0 {
142-
_ = inotify_rm_watch(fileDescriptor, UInt32(watchDescriptor))
142+
_ = inotify_rm_watch(fileDescriptor, watchDescriptor)
143143
}
144144
if fileDescriptor >= 0 {
145145
close(fileDescriptor)

0 commit comments

Comments
 (0)