Skip to content

Commit

Permalink
return size of CStructs correctly in bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Feb 21, 2015
1 parent 43e8467 commit 3764d99
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -160,7 +160,7 @@ public static long nativecallsizeof(SixModelObject obj, ThreadContext tc) {
return Pointer.SIZE;
}
else if (obj instanceof org.perl6.nqp.sixmodel.reprs.CStructInstance) {
return ((CStructInstance) obj).storage.size() / 8;
return ((CStructInstance) obj).storage.size();
}
else {
throw ExceptionHandling.dieInternal(tc,
Expand Down

0 comments on commit 3764d99

Please sign in to comment.