From cd5a9ba1f4e38292d8e8c122c2e8ce4d3879367f Mon Sep 17 00:00:00 2001 From: Shane Kennedy Date: Mon, 22 Aug 2022 12:57:51 +0200 Subject: lagnref: add signed integer repr documentation Closes #11103 --- doc/langref.html.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/langref.html.in b/doc/langref.html.in index 9247d3bc43..98db21eebf 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1521,7 +1521,8 @@ fn divide(a: i32, b: i32) i32 { Zig supports arbitrary bit-width integers, referenced by using an identifier of i or u followed by digits. For example, the identifier {#syntax#}i7{#endsyntax#} refers to a signed 7-bit integer. The maximum allowed bit-width of an - integer type is {#syntax#}65535{#endsyntax#}. + integer type is {#syntax#}65535{#endsyntax#}. For signed integer types, Zig uses a + two's complement representation.

{#see_also|Wrapping Operations#} {#header_close#} -- cgit v1.2.3