Fossil SCM

Fix sort order in json_page_finfo() on systems where char is unsigned.

preben 2023-11-28 14:58 trunk
Commit fd288be35672136f873c726983bbba72407ad584aa4e81bda31e61359c410a3c
1 file changed +1 -1
--- src/json_finfo.c
+++ src/json_finfo.c
@@ -36,11 +36,11 @@
3636
char const * zAfter = NULL;
3737
char const * zBefore = NULL;
3838
int limit = -1;
3939
int currentRow = 0;
4040
char const * zCheckin = NULL;
41
- char sort = -1;
41
+ signed char sort = -1;
4242
if(!g.perm.Read){
4343
json_set_err(FSL_JSON_E_DENIED,"Requires 'o' privileges.");
4444
return NULL;
4545
}
4646
json_warn( FSL_JSON_W_UNKNOWN, "Achtung: the output of the finfo command is up for change.");
4747
--- src/json_finfo.c
+++ src/json_finfo.c
@@ -36,11 +36,11 @@
36 char const * zAfter = NULL;
37 char const * zBefore = NULL;
38 int limit = -1;
39 int currentRow = 0;
40 char const * zCheckin = NULL;
41 char sort = -1;
42 if(!g.perm.Read){
43 json_set_err(FSL_JSON_E_DENIED,"Requires 'o' privileges.");
44 return NULL;
45 }
46 json_warn( FSL_JSON_W_UNKNOWN, "Achtung: the output of the finfo command is up for change.");
47
--- src/json_finfo.c
+++ src/json_finfo.c
@@ -36,11 +36,11 @@
36 char const * zAfter = NULL;
37 char const * zBefore = NULL;
38 int limit = -1;
39 int currentRow = 0;
40 char const * zCheckin = NULL;
41 signed char sort = -1;
42 if(!g.perm.Read){
43 json_set_err(FSL_JSON_E_DENIED,"Requires 'o' privileges.");
44 return NULL;
45 }
46 json_warn( FSL_JSON_W_UNKNOWN, "Achtung: the output of the finfo command is up for change.");
47

Keyboard Shortcuts

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