Spelling DEFAULT wrong; it's good now.

This commit is contained in:
Neil 2022-12-14 20:48:41 -08:00
parent 60671ccb47
commit 0d899c7adf

View File

@ -269,7 +269,7 @@ static void words_to_string(const union kjvcite x, char (*const a)[12])
#define TABLE_KEY union kjvcite
#define TABLE_UINT uint32_t
#define TABLE_VALUE unsigned
#define TABLE_DEFUALT 0
#define TABLE_DEFAULT 0
#define TABLE_INVERSE
#define TABLE_TO_STRING
#include "../src/table.h"
@ -348,7 +348,7 @@ int main(void) {
kjv_book_string[c.book], c.chapter, c.verse, *w);
c.u32 = 0; /* Unnecessary? */
c.book = Genesis, c.chapter = 1, c.verse = 1;
printf("%u\n", words_table_get_or(&words, c, 0)); /* Why not get? */
printf("1:1:1 -> %u\n", words_table_get(&words, c));
}
goto finally;
catch: