summaryrefslogtreecommitdiff
path: root/lib/date
diff options
context:
space:
mode:
authorLucas Gabriel Vuotto <lvuotto92@gmail.com>2017-11-01 16:53:26 -0300
committerOri Bernstein <ori@markovcorp.com>2017-11-14 13:50:39 -0800
commit83d26331a5419033927800760e8a59f1bd84d2b9 (patch)
treed5985e8e5a32e673f549fcaa8eb23b5335f4f74d /lib/date
parent8a662861ad3ded8e965ab43e5bc254dd7ee85815 (diff)
downloadmc-83d26331a5419033927800760e8a59f1bd84d2b9.tar.gz
Use new traits to implement hash tables
Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/parse.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/date/parse.myr b/lib/date/parse.myr
index 7f2eaff..b90bc43 100644
--- a/lib/date/parse.myr
+++ b/lib/date/parse.myr
@@ -164,7 +164,7 @@ const eatspace = {s
const indexof = {dst, s, set, err
for var i = 0; i < set.len; i++
- if s.len >= set[i].len && std.streq(s[:set[i].len], set[i])
+ if s.len >= set[i].len && std.cmp(s[:set[i].len], set[i])
dst# = i
-> s[set[i].len:]
;;