summary refs log tree commit diff stats
path: root/tests/realtimeGC
diff options
context:
space:
mode:
authorJoseph Poirier <jdpoirier@gmail.com>2015-01-06 13:42:02 -0600
committerJoseph Poirier <jdpoirier@gmail.com>2015-01-06 13:42:02 -0600
commit4e2192fd1cc1f8281a6992e6252df8ce763a9b7c (patch)
tree863490cdf779315dfd140c84463ba5cde1532db1 /tests/realtimeGC
parent9be15cd3b3f769f834771b48e190a8062bd2d176 (diff)
downloadNim-4e2192fd1cc1f8281a6992e6252df8ce763a9b7c.tar.gz
properly typecast the function pointers
Diffstat (limited to 'tests/realtimeGC')
-rw-r--r--tests/realtimeGC/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/realtimeGC/main.c b/tests/realtimeGC/main.c
index 0a0ea95b2..8bf7aed19 100644
--- a/tests/realtimeGC/main.c
+++ b/tests/realtimeGC/main.c
@@ -30,9 +30,9 @@ int main(int argc, char* argv[])
     occupiedMem = (pFunc)GetProcessAddress((HMODULE) hndl, (char const*)"occupiedMem");
 #else /* OSX || NIX */
     hndl = (void*) dlopen((char const*)"./libshared.so", RTLD_LAZY);
-    status = (void*) dlsym(hndl, (char const*)"status");
-    count = (void*) dlsym(hndl, (char const*)"count");
-    occupiedMem = (void*) dlsym(hndl, (char const*)"occupiedMem");
+    status = (pFunc) dlsym(hndl, (char const*)"status");
+    count = (pFunc) dlsym(hndl, (char const*)"count");
+    occupiedMem = (pFunc) dlsym(hndl, (char const*)"occupiedMem");
 #endif
 
     assert(hndl);