| 1 | From: Morten Kjeldgaard <[email protected]> |
| 2 | Subject: modification to source code |
| 3 | |
| 4 | |
| 5 | --- a/src/AO.h |
| 6 | +++ b/src/AO.h |
| 7 | @@ -12,7 +12,7 @@ |
| 8 | inline int index(int x, int y){ |
| 9 | int res=x+bufx*y; |
| 10 | if (res<0) res=0; |
| 11 | - if (res>=buf.size()) res=buf.size()-1; |
| 12 | + if (res >= (int)buf.size()) res=buf.size()-1; |
| 13 | return res; |
| 14 | //return x+bufx*y; |
| 15 | } |