Skip to content

Commit

Permalink
use unsigned value for interface offset
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jun 24, 2013
1 parent 2c6b5e6 commit 05be87d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aggregate.h
Expand Up @@ -200,7 +200,7 @@ struct BaseClass
PROT protection; // protection for the base interface

ClassDeclaration *base;
int offset; // 'this' pointer offset
unsigned offset; // 'this' pointer offset
FuncDeclarations vtbl; // for interfaces: Array of FuncDeclaration's
// making up the vtbl[]

Expand Down
2 changes: 1 addition & 1 deletion src/toobj.c
Expand Up @@ -626,7 +626,7 @@ void ClassDeclaration::toObjFile(int multiobj)
* {
* ClassInfo *interface;
* void *[] vtbl;
* ptrdiff_t offset;
* size_t offset;
* }
*/

Expand Down

0 comments on commit 05be87d

Please sign in to comment.