Project

General

Profile

Actions

Bug #2174

closed

macro argument expansion bug

Added by m.lombardi85 over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi,

The attached patch fixes a bug in the AMD powernow driver, the abs()
macro was defined in a way that may lead to unexpected results due to
the macro argument expansion vs operator precedence:

----------
#define abs(x) ( x < 0 ? x : x )
[...]
while (abs(vco_fid - vco_cfid) > 2) {
---------

Cheers,
--
--------------------
Maurizio Lombardi


Files

Actions #1

Updated by swildner over 12 years ago

Thanks Maurizio, I've committed it.

Actions

Also available in: Atom PDF