[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
remark about INT_ADD_OVERFLOW
From: |
Bruno Haible |
Subject: |
remark about INT_ADD_OVERFLOW |
Date: |
Mon, 15 Mar 2021 03:59:10 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; ) |
It might be worth mentioning in the comments in intprops.h that for
short a, b;
INT_ADD_OVERFLOW (a, b) tests whether the C expression
(a + b)
overflows; it does *not* test whether the assignment
short sum = a + b;
overflows.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- remark about INT_ADD_OVERFLOW,
Bruno Haible <=