From 61aa203a18f1b90c65e8f90cabf66651b4c320ac Mon Sep 17 00:00:00 2001 From: tony Date: Wed, 29 Aug 2018 21:59:20 +0100 Subject: Fix clang compilation fail, github issue #22 reported by ksdd. --- zxcvbn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zxcvbn.c b/zxcvbn.c index 8e96609..ebe9e31 100644 --- a/zxcvbn.c +++ b/zxcvbn.c @@ -934,8 +934,9 @@ typedef struct int Shifts; } SpatialMatchInfo_t; -/* Shift mapping, characters in pairs: first is shifted, second un-shifted. */ -static const uint8_t UK_Shift[] = "!1\"2$4%5&7(9)0*8:;<,>.?/@'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz^6_-{[|\\}]~#€4£3¬`"; +/* Shift mapping, characters in pairs: first is shifted, second un-shifted. Ordered for increasing shifted character code.*/ +/* Note: on a UK keyboard \243 is the £ (Pound stirling), \244 is the ¤ (Euro), \254 is the ¬ (Not sign) */ +static const uint8_t UK_Shift[] = "!1\"2$4%5&7(9)0*8:;<,>.?/@'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz^6_-{[|\\}]~#\2433\2444\254`"; static const uint8_t US_Shift[] = "!1\"'#3$4%5&7(9)0*8:;<,>.?/@2AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz^6_-{[|\\}]~`"; -- cgit v1.2.3