Fossil SCM
Replaced a char with an int to fix incorrect /json/branch/create handling on platforms where char is unsigned by default. Problem discovered by Daniel Dumitriu.
Commit
8cb972e7dafbe5718a91d239590e7f70bc5e8f5629f775ec7cf9551d3411fa1c
Parent
f5b5991ee559f56…
1 file changed
+1
-1
+1
-1
| --- src/json_branch.c | ||
| +++ src/json_branch.c | ||
| @@ -154,11 +154,11 @@ | ||
| 154 | 154 | */ |
| 155 | 155 | typedef struct BranchCreateOptions{ |
| 156 | 156 | char const * zName; |
| 157 | 157 | char const * zBasis; |
| 158 | 158 | char const * zColor; |
| 159 | - char isPrivate; | |
| 159 | + int isPrivate; | |
| 160 | 160 | /** |
| 161 | 161 | Might be set to an error string by |
| 162 | 162 | json_branch_new(). |
| 163 | 163 | */ |
| 164 | 164 | char const * rcErrMsg; |
| 165 | 165 |
| --- src/json_branch.c | |
| +++ src/json_branch.c | |
| @@ -154,11 +154,11 @@ | |
| 154 | */ |
| 155 | typedef struct BranchCreateOptions{ |
| 156 | char const * zName; |
| 157 | char const * zBasis; |
| 158 | char const * zColor; |
| 159 | char isPrivate; |
| 160 | /** |
| 161 | Might be set to an error string by |
| 162 | json_branch_new(). |
| 163 | */ |
| 164 | char const * rcErrMsg; |
| 165 |
| --- src/json_branch.c | |
| +++ src/json_branch.c | |
| @@ -154,11 +154,11 @@ | |
| 154 | */ |
| 155 | typedef struct BranchCreateOptions{ |
| 156 | char const * zName; |
| 157 | char const * zBasis; |
| 158 | char const * zColor; |
| 159 | int isPrivate; |
| 160 | /** |
| 161 | Might be set to an error string by |
| 162 | json_branch_new(). |
| 163 | */ |
| 164 | char const * rcErrMsg; |
| 165 |