When shortening/splitting wide lines I noticed that the save and restore code for regions had a bunch of those and they could be shortened by using an intermediate variable. Easier to read too. Also, change several 'unsigned int' to just 'unsigned' as is used in most of the rest of the code. At one point I omitted a (genericptr_t) cast (which should no longer be necessary...) and discovered that bwrite() wasn't declaring the input buffer it never modifies as 'const'.
2.9 KiB
2.9 KiB