~sircmpwn/helios-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Fix misleading comment typo

Alexander Carey <alexandercarey@proton.me>
Details
Message ID
<Ik-t0w6DKSh4giOmJHg-MVzwUlAUPDEbsx7Bli9eSWWplOtutOPyWk1-WGX3BZ61RnD1nPf6defm6e_TMVKP2GVz-w0F3EeLraWrPL2HRUg=@proton.me>
DKIM signature
pass
Download raw message
Patch: +1 -1
---
The comment for header_encode says it's for decoding.

 caps/header.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/caps/header.ha b/caps/header.ha
index f9d7957..0843cb3 100644
--- a/caps/header.ha
+++ b/caps/header.ha
@@ -9,7 +9,7 @@ export type rights = enum u8 {
// A capability header, a bitfield of [[ctype]] and [[rights]].
export type header = u8;

// Decodes a capability type and rights.
// Encodes a capability type and rights.
export fn header_encode(ctype: ctype, rights: rights) header = {
	static assert(ctype::LAST: uint << 2 < 0x100);
	return (ctype << 2): u8 | (rights & 3): header;
-- 
2.43.0
Reply to thread Export thread (mbox)