aboutsummaryrefslogtreecommitdiff
path: root/src/sync.h
diff options
context:
space:
mode:
authorAntoine Poinsot <darosior@protonmail.com>2022-07-26 13:02:48 +0200
committerAntoine Poinsot <darosior@protonmail.com>2022-07-26 13:02:48 +0200
commit00897d0677c2cb6609b90d52b89907c8b50d6de0 (patch)
treef1213794c1c8402ae41f5b5d9b36f02ce2429c51 /src/sync.h
parent31c1b14754574b0b0a54587e937fab66b3b85e39 (diff)
script: actually trigger the optimization in BuildScript
The counter is an optimization over calling `ret.empty()`. It was suggested that the compiler would realize `cnt` is only `0` on the first iteration, and not actually emit the check and conditional. This optimization was actually not triggered at all, since we incremented `cnt` at the beginning of the first iteration. Fix it by incrementing at the end instead. This was reported by Github user "Janus".
Diffstat (limited to 'src/sync.h')
0 files changed, 0 insertions, 0 deletions