diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-26 21:50:54 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-26 21:50:54 -0800 |
commit | 1e38eee5db71d551ee2dbddb35d187489e372c8c (patch) | |
tree | 307af6dbbcb7c890f162b3102ac71ffad99a4e77 /043space.cc | |
parent | 947f06fb5569007a5a3c444683794427c72cef52 (diff) | |
download | mu-1e38eee5db71d551ee2dbddb35d187489e372c8c.tar.gz |
2718 - stop crashing on unknown space
I'm going to stop wasting precious first-line characters on 'bugfix:'. It's going to be all bugfixes for a while I think.
Diffstat (limited to '043space.cc')
-rw-r--r-- | 043space.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/043space.cc b/043space.cc index 5bf7b1a4..9ca747b7 100644 --- a/043space.cc +++ b/043space.cc @@ -69,6 +69,7 @@ long long int space_base(const reagent& x) { } long long int address(long long int offset, long long int base) { + assert(offset >= 0); if (base == 0) return offset; // raw long long int size = get_or_insert(Memory, base); if (offset >= size) { |