diff options
Diffstat (limited to 'framebuffer/convert_font.c')
-rw-r--r-- | framebuffer/convert_font.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framebuffer/convert_font.c b/framebuffer/convert_font.c index a381ac10f..6f5d3c20f 100644 --- a/framebuffer/convert_font.c +++ b/framebuffer/convert_font.c @@ -3,7 +3,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <math.h> #include <assert.h> #define GLYPH_LEN 16 @@ -762,7 +761,7 @@ static bool assemble_codepoint(const char* c, int n, int *id) return false; } - *id += v * pow(16, 3 - n); + *id += v << (4 * (3 - n)); return true; } |