Fossil SCM

Doh... accidentally changed resultCodes from strings to ints during refactoring.

stephan 2011-10-05 02:41 UTC json-multitag-test
Commit 36384da86173c72cbd52d6918c380b65befdf804
1 file changed +1 -1
+1 -1
--- src/json.c
+++ src/json.c
@@ -1332,11 +1332,11 @@
13321332
pMsg = g.zErrMsg;
13331333
if(!pMsg){
13341334
pMsg = json_err_str(resultCode);
13351335
}
13361336
}
1337
- tmp = cson_value_new_integer(resultCode);
1337
+ tmp = json_new_string(json_rc_cstr(resultCode));
13381338
SET(FossilJsonKeys.resultCode);
13391339
}
13401340
13411341
if( pMsg && *pMsg ){
13421342
tmp = cson_value_new_string(pMsg, strlen(pMsg));
13431343
--- src/json.c
+++ src/json.c
@@ -1332,11 +1332,11 @@
1332 pMsg = g.zErrMsg;
1333 if(!pMsg){
1334 pMsg = json_err_str(resultCode);
1335 }
1336 }
1337 tmp = cson_value_new_integer(resultCode);
1338 SET(FossilJsonKeys.resultCode);
1339 }
1340
1341 if( pMsg && *pMsg ){
1342 tmp = cson_value_new_string(pMsg, strlen(pMsg));
1343
--- src/json.c
+++ src/json.c
@@ -1332,11 +1332,11 @@
1332 pMsg = g.zErrMsg;
1333 if(!pMsg){
1334 pMsg = json_err_str(resultCode);
1335 }
1336 }
1337 tmp = json_new_string(json_rc_cstr(resultCode));
1338 SET(FossilJsonKeys.resultCode);
1339 }
1340
1341 if( pMsg && *pMsg ){
1342 tmp = cson_value_new_string(pMsg, strlen(pMsg));
1343

Keyboard Shortcuts

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