This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
jdk-build-libs
/
json-c
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
11
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
subtract first, then retrieve value
tags/json-c-0.13-20171207
Emiel Bruijntjes
9 years ago
parent
9d85367679
commit
7e98ed93f4
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
json_object.c
+ 1
- 1
json_object.c
View File
@@ -176,7 +176,7 @@ int json_object_put(struct json_object *jso)
if(!jso) return 0;
#if defined __GNUC__
if (__sync_
fetch_and_sub
(&jso->_ref_count, 1) > 0) return 0;
if (__sync_
sub_and_fetch
(&jso->_ref_count, 1) > 0) return 0;
#else
if (--jso->_ref_count > 0) return 0;
#endif
Write
Preview
Loading…
Cancel
Save