Skip to content

Draft: Use signed integer for loop variables

Leo P. Singer requested to merge leo-singer/ligo.skymap:signed-loop-vars into main

Unsigned integer for loop variables prevent loop unrolling and may come with a performance penalty.

This is a well-known pitfall in C related to undefined behavior. See, for example, https://stackoverflow.com/questions/52862923/signed-or-unsigned-loop-counter

Edited by Leo P. Singer

Merge request reports

Loading