diff --git a/Sources/Sentry/SentrySerialization.m b/Sources/Sentry/SentrySerialization.m index f03fa29b40..b6b45fdb86 100644 --- a/Sources/Sentry/SentrySerialization.m +++ b/Sources/Sentry/SentrySerialization.m @@ -212,7 +212,7 @@ + (SentryEnvelope *_Nullable)envelopeWithData:(NSData *)data if (bodyLength > 0 && data.length < (i + 1 + bodyLength)) { SENTRY_LOG_ERROR(@"Envelope is corrupted or has invalid data. Trying to read %li " @"bytes by skiping %li from a buffer of %li bytes.", - (unsigned long)data.length, bodyLength, i + 1); + (unsigned long)data.length, bodyLength, (long)(i + 1)); return nil; }