Skip to content

Commit 3ed0e56

Browse files
committed
fixup
1 parent 9091b8f commit 3ed0e56

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

source/mir/bignum/internal/parse.d

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,9 @@ template decimalFromStringImpl(alias mullAdd, W = size_t)
136136
}
137137
}
138138

139-
ulong d = str[0] - C('0');
139+
W d = str[0] - C('0');
140140
str = str[1 .. $];
141141

142-
ulong v;
143-
144142
if (_expect(d >= 10, false))
145143
{
146144
static if (allowDotOnBounds)
@@ -221,7 +219,7 @@ template decimalFromStringImpl(alias mullAdd, W = size_t)
221219
}
222220

223221
IF:
224-
ulong multplier = 10;
222+
W multplier = 10;
225223
static if (is(C == char) && is(W == ulong))
226224
if (!__ctfe)
227225
{

0 commit comments

Comments
 (0)