Skip to content

Commit c973000

Browse files
committed
Fix off-by-one on ft_code special chars
1 parent 0c4569d commit c973000

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/JTEncode.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -504,25 +504,25 @@ uint8_t JTEncode::ft_code(char c)
504504
{
505505
return 0;
506506
}
507-
else if(c == '+')
507+
else if(c == '+')
508508
{
509-
return 38;
509+
return 37;
510510
}
511511
else if(c == '-')
512512
{
513-
return 39;
513+
return 38;
514514
}
515515
else if(c == '.')
516516
{
517-
return 40;
517+
return 39;
518518
}
519519
else if(c == '/')
520520
{
521-
return 41;
521+
return 40;
522522
}
523523
else if(c == '?')
524524
{
525-
return 42;
525+
return 41;
526526
}
527527
else
528528
{

0 commit comments

Comments
 (0)