From 37e9eabde0406a2a61b752f099cab0e5e08187fe Mon Sep 17 00:00:00 2001 From: Kevin Renskers Date: Mon, 18 Jul 2022 10:17:23 +0200 Subject: [PATCH] ref: Fix linter error (#1981) --- Sources/Sentry/SentryCrashWrapper.m | 2 +- Sources/Sentry/include/SentryCrashWrapper.h | 2 +- Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.h | 2 +- Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Sentry/SentryCrashWrapper.m b/Sources/Sentry/SentryCrashWrapper.m index 075e7d67c6c..3c1b829be27 100644 --- a/Sources/Sentry/SentryCrashWrapper.m +++ b/Sources/Sentry/SentryCrashWrapper.m @@ -70,7 +70,7 @@ - (NSDictionary *)systemInfo return sharedInfo; } -- (NSInteger)freeMemory +- (uint64_t)freeMemory { return sentrycrashcm_system_freememory(); } diff --git a/Sources/Sentry/include/SentryCrashWrapper.h b/Sources/Sentry/include/SentryCrashWrapper.h index a728ecaf7c6..6db7eaf3be5 100644 --- a/Sources/Sentry/include/SentryCrashWrapper.h +++ b/Sources/Sentry/include/SentryCrashWrapper.h @@ -30,7 +30,7 @@ SENTRY_NO_INIT - (NSDictionary *)systemInfo; -- (NSInteger)freeMemory; +- (uint64_t)freeMemory; @end diff --git a/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.h b/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.h index 9409f554bf3..6ec3dc2a255 100644 --- a/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.h +++ b/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.h @@ -25,7 +25,7 @@ SENTRY_NO_INIT @property (nonatomic, assign) BOOL closeCalled; -@property (nonatomic, assign) NSInteger internalFreeMemory; +@property (nonatomic, assign) uint64_t internalFreeMemory; @end diff --git a/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.m b/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.m index a6998a70f09..1f9bd4a1ac0 100644 --- a/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.m +++ b/Tests/SentryTests/SentryCrash/TestSentryCrashWrapper.m @@ -58,7 +58,7 @@ - (NSDictionary *)systemInfo return @{}; } -- (NSInteger)freeMemory +- (uint64_t)freeMemory { return self.internalFreeMemory; }