[Bug 1835] New: xf86pciInfo.c uses it's own broken MIN() macro

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 11 14:02:37 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1835        
   
           Summary: xf86pciInfo.c uses it's own broken MIN() macro
           Product: xorg
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Server/general
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: krh at bitplanet.net


xf86pciInfo.c uses this MIN() macro:

  #define MIN(x,y) ((x<y)?x:y)

which doesn't use () around the arguments in the macro body.

Attached patch changes the code to use the standard min() macro from
Xserver/include/misc.h        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list