From: Daniel Kirschten Date: Wed, 7 Oct 2020 20:24:28 +0000 (+0200) Subject: Fixed #17 (Mem editors stop one address too early) X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=9719354a14003c6da81fc6237b2d940612c1dc0f;hp=cc22f88b604e495d8fc709e6c5d30b2c68666ef2 Fixed #17 (Mem editors stop one address too early) --- diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryTableContentProvider.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryTableContentProvider.java index 03619e46..21971257 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryTableContentProvider.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryTableContentProvider.java @@ -49,7 +49,7 @@ public class MemoryTableContentProvider implements ILazyContentProvider, MemoryC public int getAmount() { - return (int) (upper - lower); + return (int) (upper - lower + 1); } @Override