Skip to content

Commit 1fd6dd3

Browse files
Minor formatting changes
Co-authored-by: Jiří Beneš <[email protected]>
1 parent dfccb53 commit 1fd6dd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/common/binstream.effekt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ def bytesBE(n: Int): Unit / emit[Byte] = bytesBE(n, 4)
7272
def bytes(n: Int): Unit / emit[Byte] = bytesBE(n)
7373

7474
/// emit bytes of the given int as width bytes (in 2s-complement) in little-endian byte order
75-
def signedBytesLE(int: Int, width: Int): Unit / emit[Byte] = {
75+
def signedBytesLE(int: Int, width: Int): Unit / emit[Byte] =
7676
if (int < 0) {
7777
bytesLE(bitwiseNot(neg(int)) + 1, width)
7878
} else {
7979
bytesLE(int, width)
8080
}
81-
}
8281
/// emit bytes of the given int as width bytes (in 2s-complement) in big-endian byte order
8382
def signedBytesBE(int: Int, width: Int): Unit / emit[Byte] = {
8483
if (int < 0) {

0 commit comments

Comments
 (0)