bug-make
[Top][All Lists]
Advanced

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

[bug #16788] 'ORDINARY_MTIME_MAX' macro causes integral constant overflo


From: anonymous
Subject: [bug #16788] 'ORDINARY_MTIME_MAX' macro causes integral constant overflow
Date: Thu, 8 Jun 2006 19:09:45 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.1.4322; MSVS 8.0.50727)

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) &lt;&lt;
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) \
                             &lt;&lt; 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/





reply via email to

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