diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py
index 1a4623a6256486687e4d2b276977dbd95278ef73..e981142ff8cc929b03afde7308cac55c1ea273c4 100644
--- a/gdb-port/top-level-parse.py
+++ b/gdb-port/top-level-parse.py
@@ -65,7 +65,7 @@ class TopLevelParse:
 		parser_stack = self.peek_parserstack()
 		#if self.memory_stat_method == HammerMemoryStatisticsMethod.DETAILED_ARENA_STATS
 		if self.extended_arena_stats_available(): # DEBUG
-			self.bytes_at_enter.append(arena['arena_malloc_bytes'])
+			self.bytes_at_enter.append(int(arena['arena_malloc_bytes']))
 			self.cumulative_byte_differences = [] # TODO: direction
 
 		try:
@@ -87,7 +87,7 @@ class TopLevelParse:
 
 		#if self.memory_stat_method == HammerMemoryStatisticsMethod.DETAILED_ARENA_STATS
 		if self.extended_arena_stats_available(): # DEBUG
-			newbytes = parse_state['arena']['arena_malloc_bytes']
+			newbytes = int(parse_state['arena']['arena_malloc_bytes'])
 			self.cumulative_byte_differences.insert(0, newbytes - self.bytes_at_enter[-(len(self.cumulative_byte_differences)+1)]) # TODO: consistency. this is the third way of answering the question, "how deep are we in the stack"
 			allocated_bytes = self.cumulative_byte_differences[-len(self.cumulative_byte_differences)] - self.cumulative_byte_differences[-(len(self.cumulative_byte_differences)-1)]  # NB: len(self.cumulative_byte_differences) changed since the last line
 			self.total_byte_differences.insert(-len(self.cumulative_byte_differences), allocated_bytes)