diff --git a/src/lib/metric.c b/src/lib/metric.c index 26bb9d6f9..c7b6785e6 100644 --- a/src/lib/metric.c +++ b/src/lib/metric.c @@ -41,7 +41,7 @@ const char* ncnmetric(uintmax_t val, size_t s, uintmax_t decimal, unsigned consumed = 0; uintmax_t dv = mult; if(decimal <= val || val == 0){ - // FIXME verify that input < 2^89, wish we had static_assert() :/ + // FIXME verify that input < 2^89 while((val / decimal) >= dv && consumed < sizeof(prefixes) / sizeof(*prefixes)){ dv *= mult; ++consumed; diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 0579bc8f0..6d0f83e8d 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -1233,7 +1233,7 @@ notcurses_early_init(const struct notcurses_options* opts, FILE* fp, unsigned* u free(ret); return NULL; } - if(utf8){ + if(*utf8){ ncmetric_use_utf8(); } return ret;