From 75e10f52aca35ef138a0ccb04ece3c0c14cb2214 Mon Sep 17 00:00:00 2001 From: Jeremiah Orians Date: Mon, 4 Jul 2016 15:12:58 -0400 Subject: [PATCH] Reduced scope of hex lookup table --- asm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asm.c b/asm.c index 094b1ea..c89ed46 100644 --- a/asm.c +++ b/asm.c @@ -433,10 +433,9 @@ void update_jumps(struct Token* head, struct Token* p) } } -char table[16] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46}; - void hexify_string(char* s, char* d, int max) { + char table[16] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46}; int i = 0; while( i < max) {