mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
7d13f5eb78
Testing for overflow by adding a value to a variable to see if it "wraps around" works only for unsigned integer values, because signed overflow has undefined behavior according to the C and C++ standards. Signed-off-by: Mingjie Shen <shen497@purdue.edu>