From 8c32ac8db6dad1b4208979568ed02be2873bdab5 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Fri, 7 Jul 2023 00:32:31 +0200 Subject: [PATCH] Fix typo that only caused issues in debug builds --- include/dwarfs/offset_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dwarfs/offset_cache.h b/include/dwarfs/offset_cache.h index e7099ee6..eec8aa9d 100644 --- a/include/dwarfs/offset_cache.h +++ b/include/dwarfs/offset_cache.h @@ -141,7 +141,7 @@ class basic_offset_cache { } auto ix = index / chunk_index_interval - 1; - assert(ix <= first_index_ + offset_.size()); + assert(ix <= first_index_ + offsets_.size()); if (ix == first_index_ + offsets_.size()) { offsets_.push_back(offset);