File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/swift-plugin-server/Sources/swift-plugin-server Expand file tree Collapse file tree 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 {
172172 var ptr = buffer. baseAddress!
173173
174174 while ( bytesToWrite > 0 ) {
175- let writtenSize = PluginServer_write ( handle, ptr, UInt ( bytesToWrite) )
175+ let writtenSize = PluginServer_write ( handle, ptr, Int ( bytesToWrite) )
176176 if ( writtenSize <= 0 ) {
177177 // error e.g. broken pipe.
178178 break
@@ -193,7 +193,7 @@ final class PluginHostConnection: MessageConnection {
193193 var ptr = buffer. baseAddress!
194194
195195 while bytesToRead > 0 {
196- let readSize = PluginServer_read ( handle, ptr, UInt ( bytesToRead) )
196+ let readSize = PluginServer_read ( handle, ptr, Int ( bytesToRead) )
197197 if ( readSize <= 0 ) {
198198 // 0: EOF (the host closed), -1: Broken pipe (the host crashed?)
199199 break ;
You can’t perform that action at this time.
0 commit comments