Fossil SCM
Fix sort order in json_page_finfo() on systems where char is unsigned.
Commit
fd288be35672136f873c726983bbba72407ad584aa4e81bda31e61359c410a3c
Parent
22ee43db43f3aa6…
1 file changed
+1
-1
+1
-1
| --- src/json_finfo.c | ||
| +++ src/json_finfo.c | ||
| @@ -36,11 +36,11 @@ | ||
| 36 | 36 | char const * zAfter = NULL; |
| 37 | 37 | char const * zBefore = NULL; |
| 38 | 38 | int limit = -1; |
| 39 | 39 | int currentRow = 0; |
| 40 | 40 | char const * zCheckin = NULL; |
| 41 | - char sort = -1; | |
| 41 | + signed char sort = -1; | |
| 42 | 42 | if(!g.perm.Read){ |
| 43 | 43 | json_set_err(FSL_JSON_E_DENIED,"Requires 'o' privileges."); |
| 44 | 44 | return NULL; |
| 45 | 45 | } |
| 46 | 46 | json_warn( FSL_JSON_W_UNKNOWN, "Achtung: the output of the finfo command is up for change."); |
| 47 | 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 | 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 |