diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-04-05 19:08:12 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-04-05 19:08:12 -0400 |
| commit | 6bdcf74ad91e0efaa8c2e4339f5085fde8a7982b (patch) | |
| tree | 0cd8037f9c9a35966c3022329716a2dc73e2abbb /include/framework/structure/InternalLevel.h | |
| parent | dddb68e5479a047014f5eec4071fb8e96884354c (diff) | |
| download | dynamic-extension-6bdcf74ad91e0efaa8c2e4339f5085fde8a7982b.tar.gz | |
working commit (temporary progress, doesn't build)
Diffstat (limited to 'include/framework/structure/InternalLevel.h')
| -rw-r--r-- | include/framework/structure/InternalLevel.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/framework/structure/InternalLevel.h b/include/framework/structure/InternalLevel.h index 6e8b67e..5659c72 100644 --- a/include/framework/structure/InternalLevel.h +++ b/include/framework/structure/InternalLevel.h @@ -102,8 +102,12 @@ public: return false; } - const ShardType *get_shard(size_t idx) const { - if (idx >= m_shards.size()) { + const ShardType *get_shard(ssize_t idx) const { + if (idx == all_shards_idx) { + idx = 0; + } + + if (idx >= (ssize_t) m_shards.size()) { return nullptr; } |