mirror of
https://github.com/aap/librw.git
synced 2026-01-22 19:12:58 +00:00
small changes
This commit is contained in:
@@ -106,6 +106,8 @@ PluginList::registerPlugin(int32 size, uint32 id,
|
||||
Plugin *p = (Plugin*)malloc(sizeof(Plugin));
|
||||
p->offset = this->size;
|
||||
this->size += size;
|
||||
int32 round = sizeof(void*)-1;
|
||||
this->size = (this->size + round)&~round;
|
||||
|
||||
p->size = size;
|
||||
p->id = id;
|
||||
|
||||
Reference in New Issue
Block a user