This is a bug in handling the improbable case (still a bit probable for very small lengths though).
The line declares a new variable instead of assigning to the existing one.
Note that some compiler options (like -Wshadow shadowing warnings for GCC) may prevent such bugs.
https://github.com/LetItPlay/CryptoWizards-SmartContract/blob/928e6116ad1a66380e5fa4897d19514ee44948d8/wizContract.cpp#L188
This is a bug in handling the improbable case (still a bit probable for very small lengths though). The line declares a new variable instead of assigning to the existing one.
Note that some compiler options (like
-Wshadow
shadowing warnings for GCC) may prevent such bugs.