Skip to content

Commit 797e8fe

Browse files
committed
Fixup compiler warning
1 parent 83c3ce6 commit 797e8fe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/combinators.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated from lib/combinators.ex.exs, do not edit.
2-
# Generated at 2023-12-06 19:12:09Z.
2+
# Generated at 2025-07-23 13:37:06Z.
33

44
defmodule DateTimeParser.Combinators do
55
@moduledoc false
@@ -55,7 +55,7 @@ defmodule DateTimeParser.Combinators do
5555
{:ok, [term], rest, context, line, byte_offset}
5656
| {:error, reason, rest, context, line, byte_offset}
5757
when line: {pos_integer, byte_offset},
58-
byte_offset: pos_integer,
58+
byte_offset: non_neg_integer,
5959
rest: binary,
6060
reason: String.t(),
6161
context: map
@@ -27083,7 +27083,7 @@ defmodule DateTimeParser.Combinators do
2708327083
{:ok, [term], rest, context, line, byte_offset}
2708427084
| {:error, reason, rest, context, line, byte_offset}
2708527085
when line: {pos_integer, byte_offset},
27086-
byte_offset: pos_integer,
27086+
byte_offset: non_neg_integer,
2708727087
rest: binary,
2708827088
reason: String.t(),
2708927089
context: map
@@ -43924,7 +43924,7 @@ defmodule DateTimeParser.Combinators do
4392443924
{:ok, [term], rest, context, line, byte_offset}
4392543925
| {:error, reason, rest, context, line, byte_offset}
4392643926
when line: {pos_integer, byte_offset},
43927-
byte_offset: pos_integer,
43927+
byte_offset: non_neg_integer,
4392843928
rest: binary,
4392943929
reason: String.t(),
4393043930
context: map
@@ -49955,7 +49955,7 @@ defmodule DateTimeParser.Combinators do
4995549955
{:ok, [term], rest, context, line, byte_offset}
4995649956
| {:error, reason, rest, context, line, byte_offset}
4995749957
when line: {pos_integer, byte_offset},
49958-
byte_offset: pos_integer,
49958+
byte_offset: non_neg_integer,
4995949959
rest: binary,
4996049960
reason: String.t(),
4996149961
context: map
@@ -55364,7 +55364,7 @@ defmodule DateTimeParser.Combinators do
5536455364
{:ok, [term], rest, context, line, byte_offset}
5536555365
| {:error, reason, rest, context, line, byte_offset}
5536655366
when line: {pos_integer, byte_offset},
55367-
byte_offset: pos_integer,
55367+
byte_offset: non_neg_integer,
5536855368
rest: binary,
5536955369
reason: String.t(),
5537055370
context: map

lib/combinators.ex.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ defmodule DateTimeParser.Combinators do
9494

9595
## TIME
9696

97-
@hour_num ~w(00 01 02 03 04 05 06 07 08 09) ++ Enum.map(23..0, &to_string/1)
98-
@second_minute_num ~w(00 01 02 03 04 05 06 07 08 09) ++ Enum.map(59..0, &to_string/1)
97+
@hour_num ~w(00 01 02 03 04 05 06 07 08 09) ++ Enum.map(23..0//-1, &to_string/1)
98+
@second_minute_num ~w(00 01 02 03 04 05 06 07 08 09) ++ Enum.map(59..0//-1, &to_string/1)
9999
@am_pm ~w(am a.m a.m. a_m pm p.m p.m. p_m a p)
100100

101101
invalid_time_first_digit = ascii_char([?6..?9])

0 commit comments

Comments
 (0)