aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHashi364 <49736221+Kiyoshi364@users.noreply.github.com>2023-03-13 11:47:20 -0300
committerGitHub <noreply@github.com>2023-03-13 14:47:20 +0000
commit4942e4e8701b9a137d7f30fcb8ac1bc2d46f2a99 (patch)
tree35ad35e77e2f9266e4b1bbff873d1adfe378e23e /src
parentadc6dec26b8ba9f79aabc4b69ae689acf4c6767d (diff)
downloadzig-4942e4e8701b9a137d7f30fcb8ac1bc2d46f2a99.tar.gz
zig-4942e4e8701b9a137d7f30fcb8ac1bc2d46f2a99.zip
Resolve docs inconsistency with Overflow builtins
In 41 (Undefined Behavior) . 5 (Integer Overflow) . 3 (Builtin Overflow Functions), it is stated that > These builtins return a bool of whether or not overflow occurred, as well as returning the overflowed bits: > * @addWithOverflow > * @subWithOverflow > * @mulWithOverflow > * @shlWithOverflow but in their definition says that it returns a `tuple`/`struct`. Example; `@addWithOverflow(a: anytype, b: anytype) struct { @TypeOf(a, b), u1 }` Co-authored-by: zooster <r00ster91@proton.me>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions