diff options
Diffstat (limited to '')
-rw-r--r-- | src/plugger.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugger.h b/src/plugger.h index 992b541..6ae0296 100644 --- a/src/plugger.h +++ b/src/plugger.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <dlfcn.h> | 14 | #include <dlfcn.h> |
15 | #include "bu/exceptions.h" | 15 | #include "bu/exceptions.h" |
16 | #include "bu/fstring.h" | 16 | #include "bu/fstring.h" |
17 | #include <stddef.h> | ||
17 | 18 | ||
18 | namespace Bu | 19 | namespace Bu |
19 | { | 20 | { |
@@ -86,7 +87,7 @@ namespace Bu | |||
86 | { | 87 | { |
87 | public: | 88 | public: |
88 | typedef Bu::Hash<Bu::FString, PluginReg *> PluginHash; | 89 | typedef Bu::Hash<Bu::FString, PluginReg *> PluginHash; |
89 | typedef Bu::Hash<int, void *> InstHash; | 90 | typedef Bu::Hash<ptrdiff_t, void *> InstHash; |
90 | 91 | ||
91 | public: | 92 | public: |
92 | Plugger() | 93 | Plugger() |
@@ -161,7 +162,7 @@ namespace Bu | |||
161 | return NULL; | 162 | return NULL; |
162 | 163 | ||
163 | T *p = (T *)pReg->pInfo->createPlugin(); | 164 | T *p = (T *)pReg->pInfo->createPlugin(); |
164 | hObj.insert( (int )p, pReg ); | 165 | hObj.insert( (ptrdiff_t)p, pReg ); |
165 | //printf("pReg: %08X, pPlug: %08X\n", pReg, p ); | 166 | //printf("pReg: %08X, pPlug: %08X\n", pReg, p ); |
166 | 167 | ||
167 | return p; | 168 | return p; |
@@ -181,7 +182,7 @@ namespace Bu | |||
181 | 182 | ||
182 | pReg->pInfo->destroyPlugin( pPlug ); | 183 | pReg->pInfo->destroyPlugin( pPlug ); |
183 | 184 | ||
184 | hObj.erase( (int)pPlug ); | 185 | hObj.erase( (ptrdiff_t)pPlug ); |
185 | } | 186 | } |
186 | 187 | ||
187 | void unloadAll() | 188 | void unloadAll() |