Fossil SCM
Fix a bug in repo_list_page() that manifests only on 32-bit builds on big-endian CPUs.
Commit
42076cabfa45198898ebaba17b044bdb038e6c8e5e1ff56f0ce12b2e57d5f32f
Parent
aaf6abf6cab4f00…
1 file changed
+1
-1
+1
-1
| --- src/repolist.c | ||
| +++ src/repolist.c | ||
| @@ -283,11 +283,11 @@ | ||
| 283 | 283 | }else{ |
| 284 | 284 | blob_append_sql(&html, "<td></td><td></td>\n"); |
| 285 | 285 | } |
| 286 | 286 | blob_append_sql(&html, |
| 287 | 287 | "<td></td><td data-sortkey='%08x'>%h</td>\n", |
| 288 | - iAge, zAge); | |
| 288 | + (int)iAge, zAge); | |
| 289 | 289 | fossil_free(zAge); |
| 290 | 290 | if( x.zLoginGroup ){ |
| 291 | 291 | blob_append_sql(&html, "<td></td><td>%h</td></tr>\n", x.zLoginGroup); |
| 292 | 292 | fossil_free(x.zLoginGroup); |
| 293 | 293 | }else{ |
| 294 | 294 |
| --- src/repolist.c | |
| +++ src/repolist.c | |
| @@ -283,11 +283,11 @@ | |
| 283 | }else{ |
| 284 | blob_append_sql(&html, "<td></td><td></td>\n"); |
| 285 | } |
| 286 | blob_append_sql(&html, |
| 287 | "<td></td><td data-sortkey='%08x'>%h</td>\n", |
| 288 | iAge, zAge); |
| 289 | fossil_free(zAge); |
| 290 | if( x.zLoginGroup ){ |
| 291 | blob_append_sql(&html, "<td></td><td>%h</td></tr>\n", x.zLoginGroup); |
| 292 | fossil_free(x.zLoginGroup); |
| 293 | }else{ |
| 294 |
| --- src/repolist.c | |
| +++ src/repolist.c | |
| @@ -283,11 +283,11 @@ | |
| 283 | }else{ |
| 284 | blob_append_sql(&html, "<td></td><td></td>\n"); |
| 285 | } |
| 286 | blob_append_sql(&html, |
| 287 | "<td></td><td data-sortkey='%08x'>%h</td>\n", |
| 288 | (int)iAge, zAge); |
| 289 | fossil_free(zAge); |
| 290 | if( x.zLoginGroup ){ |
| 291 | blob_append_sql(&html, "<td></td><td>%h</td></tr>\n", x.zLoginGroup); |
| 292 | fossil_free(x.zLoginGroup); |
| 293 | }else{ |
| 294 |