julelang / jule

Effective programming language to build efficient, fast, reliable and safe software while maintaining simplicity
https://jule.dev
BSD 3-Clause "New" or "Revised" License
128 stars 13 forks source link

style: avoid comparison of ints of different sign #69

Closed vil02 closed 7 months ago

vil02 commented 7 months ago

Description

Comparing signed and unsigned ints can lead to all kinds of madness and it should be avoided. Please note that on two occasions I have used decltype, which might be an overkill. I can change it to std::size_t.

Checklist

Screenshots (if any)

Note to reviewers

Avoid comparison of integers of different sign.