File tree 1 file changed +2
-2
lines changed
tools/swift-plugin-server/Sources/swift-plugin-server 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ final class PluginHostConnection: MessageConnection {
172
172
var ptr = buffer. baseAddress!
173
173
174
174
while ( bytesToWrite > 0 ) {
175
- let writtenSize = PluginServer_write ( handle, ptr, UInt ( bytesToWrite) )
175
+ let writtenSize = PluginServer_write ( handle, ptr, Int ( bytesToWrite) )
176
176
if ( writtenSize <= 0 ) {
177
177
// error e.g. broken pipe.
178
178
break
@@ -193,7 +193,7 @@ final class PluginHostConnection: MessageConnection {
193
193
var ptr = buffer. baseAddress!
194
194
195
195
while bytesToRead > 0 {
196
- let readSize = PluginServer_read ( handle, ptr, UInt ( bytesToRead) )
196
+ let readSize = PluginServer_read ( handle, ptr, Int ( bytesToRead) )
197
197
if ( readSize <= 0 ) {
198
198
// 0: EOF (the host closed), -1: Broken pipe (the host crashed?)
199
199
break ;
You can’t perform that action at this time.
0 commit comments