[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #16114] Print warning where integer overflow happens

From: Siyang He
Subject: [task #16114] Print warning where integer overflow happens
Date: Wed, 29 Mar 2023 16:21:19 -0400 (EDT)

Follow-up Comment #10, task #16114 (project gnuastro):

Excellent Mohammad!

distcheck passed and you can find my changes at

Overview of changes:
- lib/gnuastro/arithmetic.h: I define the flag
- lib: I add "overflow_check" versions of the plus, minus, multiply, and
divide operations.
- lib/arithmetic.c: I call the appropriate version (check for overflow vs.
don't check) of each arithmetic function from arithmetic_binary().
- lib/gnuastro-internal/arithmetic-binary.h: I define a few more levels of
macros for overflow checks.

I would appreciate your feedback. Thank you!


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]