From 845e44ab42305dda56f7ec22b12171adc890e454 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 9 Dec 2017 18:10:22 +0300 Subject: ADLMIDI2: Fixed macOS build --- utils/adlmidi-2/9x15.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/adlmidi-2/9x15.hpp') diff --git a/utils/adlmidi-2/9x15.hpp b/utils/adlmidi-2/9x15.hpp index 0461a6f..9812951 100644 --- a/utils/adlmidi-2/9x15.hpp +++ b/utils/adlmidi-2/9x15.hpp @@ -131,17 +131,17 @@ static const unsigned char bitmap[3840] = { }; static const struct unicode_to_bitmap_index_generator { - static uint_least8_t Help(uint_least8_t index, bool InRecursion) + static uint_least8_t Help(uint8_t index, bool InRecursion) { return InRecursion ? (index & 0xFF) : Find(UnicodeToASCIIapproximation(index)&0xFF, true); } - static uint_least8_t Find(uint_least8_t index, bool InRecursion) + static uint_least8_t Find(uint8_t index, bool InRecursion) { return (index < 160) ? ((index < 127) ? index - 0 : Help(index,InRecursion)) - : ((index < 256) ? index - 33 : Help(index,InRecursion)) + : /*((index < 256) ?*/ index - 33 /*: Help(index,InRecursion))*/ ; } uint_least8_t operator[] (uint_least8_t index) const { return Find(index, false); } -- cgit v1.2.3