Changeset 26579 for platform/mysql
- Timestamp:
- 12/12/08 17:36:01 (4 years ago)
- Files:
-
- 1 modified
-
platform/mysql/top-n-sort/top-n-sort.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/mysql/top-n-sort/top-n-sort.c
r26578 r26579 185 185 int idx = (int)*(long long*)args->args[0]; 186 186 187 if (idx < 0) { 188 idx += info->count; 189 } 187 190 return 0 <= idx && idx < info->count ? info->items[idx].id : 0; 188 191 } … … 215 218 int idx = (int)*(long long*)args->args[0]; 216 219 220 if (idx < 0) { 221 idx += info->count; 222 } 217 223 return 0 <= idx && idx < info->count ? info->items[idx].value : 0; 218 224 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)