Skip to content
Snippets Groups Projects
Commit 5be77101 authored by Francesco Battaglia's avatar Francesco Battaglia
Browse files

Fixed the value of bufferIndex, line 173 and following, as previous version...

Fixed the value of bufferIndex, line 173 and following, as previous version caused buffer index to be negative, triggering an assert, and most likely access violations and crashes. The important point is that in C99 the '%' operator is a 'remainder' and not a 'modulo' operator, so counterintuitively enough, it will give a negative results for negative numerators...
parent 9369075b
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment