Fossil SCM

Fix a bug in repo_list_page() that manifests only on 32-bit builds on big-endian CPUs.

drh 2023-06-19 13:54 trunk
Commit 42076cabfa45198898ebaba17b044bdb038e6c8e5e1ff56f0ce12b2e57d5f32f
1 file changed +1 -1
+1 -1
--- src/repolist.c
+++ src/repolist.c
@@ -283,11 +283,11 @@
283283
}else{
284284
blob_append_sql(&html, "<td></td><td></td>\n");
285285
}
286286
blob_append_sql(&html,
287287
"<td></td><td data-sortkey='%08x'>%h</td>\n",
288
- iAge, zAge);
288
+ (int)iAge, zAge);
289289
fossil_free(zAge);
290290
if( x.zLoginGroup ){
291291
blob_append_sql(&html, "<td></td><td>%h</td></tr>\n", x.zLoginGroup);
292292
fossil_free(x.zLoginGroup);
293293
}else{
294294
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button