From 4fb590f252a979b9175200b2a36667fe7f869c70 Mon Sep 17 00:00:00 2001 From: Nicki Stone Date: Thu, 5 Aug 2021 21:12:55 -0700 Subject: [PATCH] fix: remove stream warning and update cal (#36) --- Source/AwsCommonRuntimeKit/io/Stream.swift | 9 +++------ aws-common-runtime/aws-c-cal | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/AwsCommonRuntimeKit/io/Stream.swift b/Source/AwsCommonRuntimeKit/io/Stream.swift index 839dcfd75..846e92153 100644 --- a/Source/AwsCommonRuntimeKit/io/Stream.swift +++ b/Source/AwsCommonRuntimeKit/io/Stream.swift @@ -105,12 +105,9 @@ private func doGetLength(_ stream: UnsafeMutablePointer!, _ result: UnsafeMutablePointer!) -> 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!) { diff --git a/aws-common-runtime/aws-c-cal b/aws-common-runtime/aws-c-cal index f3a499311..aa89aa495 160000 --- a/aws-common-runtime/aws-c-cal +++ b/aws-common-runtime/aws-c-cal @@ -1 +1 @@ -Subproject commit f3a4993112a718ee1ddb24927e924886e032214a +Subproject commit aa89aa4950074babe84762413f39bd364ecaf944