Skip to content

Commit ed6a4ca

Browse files
committed
Fix Util.SetBits for ulong
1 parent 72448dc commit ed6a4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImGui.NET/Util.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ internal static uint SetBits(uint oldValue, int offset, int bitCount, uint newBi
8787
return (uint)((oldValue & ~mask) | (newBits << offset & mask));
8888
}
8989

90-
internal static ulong SetBits(byte oldValue, int offset, int bitCount, ulong newBits)
90+
internal static ulong SetBits(ulong oldValue, int offset, int bitCount, ulong newBits)
9191
{
9292
var mask = (ulong)((1 << bitCount) - 1 << offset);
9393
return (ulong)((oldValue & ~mask) | (newBits << offset & mask));

0 commit comments

Comments
 (0)