ref: c9052bc329e137cf2449505ff711fef0cd802034
parent: 0cf19ce2fc9eedd9a1c84e30bb12e657bd5db6f2
author: cancel <cancel@cancel.fm>
date: Tue Dec 18 22:08:15 EST 2018
Cleanup
--- a/sim.c
+++ b/sim.c
@@ -10,10 +10,7 @@
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', // 24 - 35
};
-enum {
- Glyphs_array_num = sizeof indexed_glyphs,
- Glyphs_index_max = 36,
-};
+enum { Glyphs_index_max = sizeof indexed_glyphs };
// Always returns 0 through (sizeof indexed_glyphs) - 1, and works on
// capitalized glyphs as well. The index of the lower-cased glyph is returned
@@ -66,7 +63,7 @@
#endif
static inline Glyph glyph_of(Usz index) {
- assert(index < Glyphs_array_num);
+ assert(index < Glyphs_index_max);
return indexed_glyphs[index];
}