summaryrefslogtreecommitdiff
path: root/synth/shared_object_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synth/shared_object_manager.cpp')
-rw-r--r--synth/shared_object_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/synth/shared_object_manager.cpp b/synth/shared_object_manager.cpp
index 045f409..b9e2be7 100644
--- a/synth/shared_object_manager.cpp
+++ b/synth/shared_object_manager.cpp
@@ -31,7 +31,7 @@ void* my_dlopen(string file)
output_verbose("the requested shared object '"+file+"' has been loaded with handle #"+IntToStr(int(handle)));
}
- dl_ref_count[handle]++;
+ ++dl_ref_count[handle];
return handle;
}
@@ -44,7 +44,7 @@ void dlref_inc(void* handle)
if (dl_ref_count[handle]==0)
throw string("dlref_inc: tried to increment the ref-count for a nonexistent handle");
- dl_ref_count[handle]++;
+ ++dl_ref_count[handle];
}
void dlref_dec(void* handle)
@@ -55,7 +55,7 @@ void dlref_dec(void* handle)
if (dl_ref_count[handle]==0)
throw string("dlref_inc: tried to decrement the ref-count for a nonexistent handle");
- dl_ref_count[handle]--;
+ --dl_ref_count[handle];
if (dl_ref_count[handle]==0)
{