diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-30 11:25:18 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-30 11:25:18 -0400 |
commit | 7333826bcee4a111933d602c076516e434e5d6aa (patch) | |
tree | 006f253251ffb2e1c4f59abc31eaf7d49a2feccc /lisc | |
parent | 790f852b9666748b88fe6ddcbedc8a350027d98f (diff) | |
download | roux-7333826bcee4a111933d602c076516e434e5d6aa.tar.gz |
uniformize alignment code in framesz()
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/emit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisc/emit.c b/lisc/emit.c index 8492a71..8a9983f 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -297,8 +297,7 @@ framesz(Fn *fn) for (i=0, o=0; i<NRClob; i++) o ^= 1 & (fn->reg >> rclob[i]); f = fn->slot; - if (f & 3) - f += 4 - (f & 3); + f = (f + 3) & -4; return 4*f + 8*o; } |