From ac07c90b539dc3ec313c264318c0e21e0145cf12 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 28 Nov 2018 00:45:18 -0500 Subject: [PATCH] Fix some new warnings about integer truncation. --- Source/DebuggerBackEnd.m | 4 ++-- Source/ProtocolClient.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/DebuggerBackEnd.m b/Source/DebuggerBackEnd.m index f69d5b6..ba51977 100644 --- a/Source/DebuggerBackEnd.m +++ b/Source/DebuggerBackEnd.m @@ -178,8 +178,8 @@ // Check to see if there are more children to load. NSArray* newLoadedData = [loadedData arrayByAddingObjectsFromArray:children]; - unsigned int totalChildren = [[[parent attributeForName:@"numchildren"] stringValue] integerValue]; - if ([newLoadedData count] < totalChildren) { + NSInteger totalChildren = [[[parent attributeForName:@"numchildren"] stringValue] integerValue]; + if ([newLoadedData count] < (NSUInteger)totalChildren) { [self loadVariableNode:variable forStackFrame:frame dataPage:dataPage + 1 diff --git a/Source/ProtocolClient.m b/Source/ProtocolClient.m index fb23dee..bddd34d 100644 --- a/Source/ProtocolClient.m +++ b/Source/ProtocolClient.m @@ -193,7 +193,7 @@ [self messageQueue:queue error:error]; return; } - int transactionID = [self transactionIDFromResponse:xml]; + NSInteger transactionID = [self transactionIDFromResponse:xml]; _lastReadID = transactionID; entry.lastReadTransactionID = _lastReadID; -- 2.22.5