Skip to content

Commit

Permalink
fix: remove stream warning and update cal (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
kneekey23 committed Aug 6, 2021
1 parent 25a2c68 commit 4fb590f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Source/AwsCommonRuntimeKit/io/Stream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ private func doGetLength(_ stream: UnsafeMutablePointer<aws_input_stream>!,
_ result: UnsafeMutablePointer<Int64>!) -> Int32 {
let inputStream = stream.pointee.impl.bindMemory(to: AwsStream.self, capacity: 1).pointee
let length = inputStream.length
if length >= 0 {
result.pointee = Int64(length)
return AWS_OP_SUCCESS
}
aws_raise_error(Int32(AWS_IO_STREAM_READ_FAILED.rawValue))
return AWS_OP_ERR

result.pointee = Int64(length)
return AWS_OP_SUCCESS
}

private func doDestroy(_ stream: UnsafeMutablePointer<aws_input_stream>!) {
Expand Down

0 comments on commit 4fb590f

Please sign in to comment.