I have this completed as well but I haven't closed it yet because I am pretty sure there is just one bug in this function:
I have added !max check because it can happen if whoever invokes this function is not careful but I am unable to understand why the static cast is needed. isn't it fine to keep everything between signed integers like the rest of the function?
I have this completed as well but I haven't closed it yet because I am pretty sure there is just one bug in this function:
I have added !max check because it can happen if whoever invokes this function is not careful but I am unable to understand why the static cast is needed. isn't it fine to keep everything between signed integers like the rest of the function?
I have this completed as well but I haven't closed it yet because I am pretty sure there is just one bug in this function:
I have added !max check because it can happen if whoever invokes this function is not careful but I am unable to understand why the static cast is needed. isn't it fine to keep everything between signed integers like the rest of the function?
> I have this completed as well but I haven't closed it yet because I am pretty sure there is just one bug in this function:
>
> I have added !max check because it can happen if whoever invokes this function is not careful but I am unable to understand why the static cast is needed. isn't it fine to keep everything between signed integers like the rest of the function?
Check this out: https://godbolt.org/z/EGnofMn7q
It'd seem to me that the behavior **with** the cast is the intended behavior.
https://github.com/iw4x/iw4x-client/blob/develop/src/Components/Modules/TextRenderer.cpp#L1327-L1332
**With** the cast would also be consistent with iw4x.
Okay, i played with godbolt a bit so yeah iw4x way is better as laupetin took a bit more care than the original xlabs dev when they coded this strip function
so I remove your email address as well from the commit history I hope you like your new email
Okay, i played with godbolt a bit so yeah iw4x way is better as laupetin took a bit more care than the original xlabs dev when they coded this strip function
so I remove your email address as well from the commit history I hope you like your new email
completed via https://git.alterware.dev/alterware/iw6-mod/commit/199206ee5ae6919cdd101f2f5e5aa76a1f676ce3
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I have this completed as well but I haven't closed it yet because I am pretty sure there is just one bug in this function:
I have added !max check because it can happen if whoever invokes this function is not careful but I am unable to understand why the static cast is needed. isn't it fine to keep everything between signed integers like the rest of the function?
Check this out: https://godbolt.org/z/EGnofMn7q
It'd seem to me that the behavior with the cast is the intended behavior.
https://github.com/iw4x/iw4x-client/blob/develop/src/Components/Modules/TextRenderer.cpp#L1327-L1332
With the cast would also be consistent with iw4x.
Interesting, I'm glad I asked.
Okay, i played with godbolt a bit so yeah iw4x way is better as laupetin took a bit more care than the original xlabs dev when they coded this strip function
so I remove your email address as well from the commit history I hope you like your new email
completed via
199206ee5aPull request closed