Skip to content

Commit

Permalink
Fix padding on struct
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed May 16, 2024
1 parent 84855c0 commit 65622a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ HL_PRIM hl_runtime_obj *hl_get_obj_rt( hl_type *ot ) {
int large = hl_get_obj_rt(ft->tparam)->largest_field;
int pad = size % large;
if( pad != 0 )
size += large - size;
size += large - pad;
if( large > largest_field )
largest_field = large;
} else
Expand Down

0 comments on commit 65622a6

Please sign in to comment.