This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1000636] New: tests/tm_basic.cxx: bad definition for max()
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Thu, 13 Nov 2008 17:46:52 +0000
- Subject: [Bug 1000636] New: tests/tm_basic.cxx: bad definition for max()
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000636
Summary: tests/tm_basic.cxx: bad definition for max()
Product: eCos
Version: unknown
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: normal
Component: POSIX (EL/IX)
AssignedTo: jifl@ecoscentric.com
ReportedBy: david.tylski@parrot.com
QAContact: ecos-bugs@ecos.sourceware.org
Class: ---
#ifndef max
#define max(n,m) (m > n ? n : m)
#endif
That is the definition of min()! Shall instead be:
#ifndef max
#define max(n,m) ((m) > (n) ? (m) : (n))
#endif
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
// Author(s): gthomas,nickg
// Contributors: jlarmour
// Date: 1998-10-19
// Description: Very simple kernel timing test
I have no information on the exact file version, maybe it is already fixed on
the last one.
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.