aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortony <tsyrogit@users.noreply.github.com>2018-08-29 21:59:20 +0100
committertony <tsyrogit@users.noreply.github.com>2018-08-29 21:59:20 +0100
commit61aa203a18f1b90c65e8f90cabf66651b4c320ac (patch)
tree21a8f9c7532dcc493c11860d6547e68775a985e9
parent3218efa6eaf4f8067e86a7db6297c7eb215f4120 (diff)
downloadzxcvbn-c-61aa203a18f1b90c65e8f90cabf66651b4c320ac.tar.gz
Fix clang compilation fail, github issue #22 reported by ksdd.
-rw-r--r--zxcvbn.c5
1 files 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_-{[|\\}]~`";