Clarify box_wrap
Currently the implementation of box_wrap
is wrong. The box size is b - a
and not simply b
. As we are always assuming a == 0
, the code works fine. Here I am removing the parameter a
. If you prefer, I can also simply update the box size in the wrap.
Merge request reports
Activity
Great. Thanks. Never assume what the compiler does.
Tools like https://godbolt.org/ can be helpful.Try commenting out the lines 26 or 28 to see what
box_wrap()
andbox_wrap2()
get compiled into. You'll see it's the same.mentioned in commit c25515f3
Please register or sign in to reply