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.

stephan 2021-07-01 22:00 trunk
Commit 8cb972e7dafbe5718a91d239590e7f70bc5e8f5629f775ec7cf9551d3411fa1c
1 file changed +1 -1
--- src/json_branch.c
+++ src/json_branch.c
@@ -154,11 +154,11 @@
154154
*/
155155
typedef struct BranchCreateOptions{
156156
char const * zName;
157157
char const * zBasis;
158158
char const * zColor;
159
- char isPrivate;
159
+ int isPrivate;
160160
/**
161161
Might be set to an error string by
162162
json_branch_new().
163163
*/
164164
char const * rcErrMsg;
165165
--- 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

Keyboard Shortcuts

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