Small mistake:
Code:
    } while (code >= nextTable[...