URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16788>
Summary: 'ORDINARY_MTIME_MAX' macro causes integral constant overflow Project: make Submitted by: None Submitted on: Thursday 06/08/06 at 19:09 UTC Severity: 3 - Normal Item Group: Enhancement Status: None Privacy: Public Assigned to: None Open/Closed: Open Component Version: 3.81 Operating System: MS Windows Fixed Release: None _______________________________________________________ Details: Abstract: The macro causes a compiler warning. Workaround: rearrange the additions. The details are attached in XML below. <bug-report> <behaviour> <location path="make-3.81/file.c" line="775"> FILE_TIMESTAMP_S (ORDINARY_MTIME_MAX) </location> <output> warning C4307: '+' : integral constant overflow </output> </behaviour> <reason> The warning is caused by the addition (FILE_TIMESTAMP_S (NEW_MTIME) << FILE_TIMESTAMP_LO_BITS) + ORDINARY_MTIME_MIN + FILE_TIMESTAMPS_PER_S </reason> <remedy> <location path="make-3.81/filedef.h" line="188"> #define ORDINARY_MTIME_MAX ((FILE_TIMESTAMP_S (NEW_MTIME) \ << FILE_TIMESTAMP_LO_BITS) \ + ORDINARY_MTIME_MIN - 1 + FILE_TIMESTAMPS_PER_S) </location> </remedy> </bug-report> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16788> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make