diff options
author | tony <tsyrogit@users.noreply.github.com> | 2018-08-29 21:59:20 +0100 |
---|---|---|
committer | tony <tsyrogit@users.noreply.github.com> | 2018-08-29 21:59:20 +0100 |
commit | 61aa203a18f1b90c65e8f90cabf66651b4c320ac (patch) | |
tree | 21a8f9c7532dcc493c11860d6547e68775a985e9 | |
parent | 3218efa6eaf4f8067e86a7db6297c7eb215f4120 (diff) | |
download | zxcvbn-c-61aa203a18f1b90c65e8f90cabf66651b4c320ac.tar.gz |
Fix clang compilation fail, github issue #22 reported by ksdd.
-rw-r--r-- | zxcvbn.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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_-{[|\\}]~`"; |