Skip to content

Commit baea5cb

Browse files
committed
Allow alignment outside of range of byte
1 parent 659674d commit baea5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SabreTools.IO/Extensions/StreamExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class StreamExtensions
1212
/// <param name="input">Input stream to try aligning</param>
1313
/// <param name="alignment">Number of bytes to align on</param>
1414
/// <returns>True if the stream could be aligned, false otherwise</returns>
15-
public static bool AlignToBoundary(this Stream? input, byte alignment)
15+
public static bool AlignToBoundary(this Stream? input, int alignment)
1616
{
1717
// If the stream is invalid
1818
if (input == null || input.Length == 0 || !input.CanRead)

0 commit comments

Comments
 (0)