Commit 5be7710
committed
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...
1 parent 9369075 commit 5be7710
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
0 commit comments