Skip to content

Commit 5f599be

Browse files
author
Dan Vu
committed
Fixing windows error
1 parent 3bebd15 commit 5f599be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dsymbol/src/dsymbol/ufcs.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private const(Token)* findUFCSBaseToken( const(Token)[] tokens)
7171
int depth = 0;
7272

7373
// Walk backwards to skip nested parentheses/brackets/braces
74-
for (long i = tokens.length - 1; i >= 0; i--)
74+
for (size_t i = tokens.length; i-- > 0;)
7575
{
7676
auto t = tokens[i].type;
7777

@@ -268,7 +268,7 @@ const(Token)* findUFCSExpressionStart(SortedTokens tokens)
268268
{
269269
int depth = 0;
270270

271-
for (long i = tokens.length - 1; i >= 0; i--)
271+
for (size_t i = tokens.length; i-- > 0;)
272272
{
273273
auto t = tokens[i].type;
274274

0 commit comments

Comments
 (0)