update padded user alignment
This commit is contained in:
@@ -10,6 +10,7 @@ const StringContext = std.hash_map.StringContext;
|
||||
// MaxShells is the maximum number of "popular" shells.
|
||||
pub const MaxShells = 63;
|
||||
pub const MaxShellLen = 64;
|
||||
const ShellAlignment = 2; // bits
|
||||
|
||||
// ShellReader interprets "Shell Index" and "Shell Blob" sections.
|
||||
pub const ShellReader = struct {
|
||||
@@ -71,7 +72,7 @@ pub const ShellWriter = struct {
|
||||
});
|
||||
|
||||
fullOffset += len;
|
||||
const padding = pad.roundUpPadding(u12, 2, fullOffset);
|
||||
const padding = pad.roundUpPadding(u12, ShellAlignment, fullOffset);
|
||||
fullOffset += padding;
|
||||
//const stderr = std.io.getStdErr().writer();
|
||||
//stderr.print("\n", .{}) catch unreachable;
|
||||
|
||||
Reference in New Issue
Block a user