Skip to content

cmd/compile: loop inversion does not support unsigned numbers #65918

@Jorropo

Description

@Jorropo

This is duplicate of #61629 but for:

for range uint(x) {
 // ...
}

I didn't implemented it back then since I reused existing scanning code (findIndVar) which only supported signed ops:

// TODO: Handle unsigned comparisons?

I'll submit a patch.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions