Changeset 8615 for code/branches/presentation/src/libraries/util
- Timestamp:
- May 26, 2011, 6:01:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/util/Math.h
r8351 r8615 174 174 return (x % max); 175 175 else 176 return ((x % max) + max); 176 { 177 T temp = x % max; 178 return (temp < 0) ? (temp + max) : temp; 179 } 177 180 } 178 181
Note: See TracChangeset
for help on using the changeset viewer.