Skip to content

Commit b9d598a

Browse files
committed
Bug fix
1 parent 3265ccf commit b9d598a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

mapcodelib/mapcode_fastalpha.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static const char parentletter[MAX_CCODE + 1] =
3737
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
3838
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0,
3939
0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
40-
8, 0, 0, 0, 0, 0,0};
40+
8, 0, 0, 0, 0, 0, 0};
4141

4242

4343
static const char parentnumber[MAX_CCODE + 1] =
@@ -59,7 +59,7 @@ static const char parentnumber[MAX_CCODE + 1] =
5959
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
6060
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3,
6161
7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
62-
0, 8, 0, 0, 0, 0,0};
62+
0, 8, 0, 0, 0, 0, 0};
6363

6464
#define NRTERREC 916
6565
typedef struct {

unittest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To build the unit tests, execute:
77

88
(Or if you need to make sure there are no warnings:)
99

10-
gcc -Wall -O unittest.c -lm -lpthread -o unittest
10+
gcc -Wall -O unittest.c -lm -lpthread -fsanitize=address -o unittest
1111

1212
To execute the tests, simply execute:
1313

unittest/unittest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ static int test_failing_decodes(void) {
713713
"NLD ZZZ.ZZZ", // grid out of range
714714
"NLD SHH.HHH", // grid out of encompassing
715715
"NLD L222.222", // grid out of range (restricted)
716+
"W9.SX94", // reported as an error case
716717
0
717718
};
718719
int i;

0 commit comments

Comments
 (0)