Bug 630 - Wimax doesn't compile with gcc-3.4.x
: Wimax doesn't compile with gcc-3.4.x
Status: RESOLVED FIXED
: ns-3
wimax
: pre-release
: All All
: P5 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-07-08 12:04 EDT by
Modified: 2009-08-07 03:30 EDT (History)


Attachments
Remove the negative one values and replaced by ~0 (1.57 KB, patch)
2009-07-08 12:19 EDT, Faker Moatamri
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-07-08 12:04:15 EDT

    
------- Comment #1 From 2009-07-08 12:05:51 EDT -------
The error looks like this:
../src/devices/wimax/wimax-net-device.cc:49: warning: converting of negative
value `-0x00000000000000001' to `uint8_t'
This is due to assigning a value -1 to an unsigned int.
------- Comment #2 From 2009-07-08 12:13:32 EDT -------
Replaced the initial value of uint8_t = -1 by the negation of 0 which means
initialvalue = ~0 (binary negation of 0) instead of initialvalue = -1 which
shouldn't exist as it is an unsigned integer.
------- Comment #3 From 2009-07-08 12:19:20 EDT -------
Created an attachment (id=520) [details]
Remove the negative one values and replaced by ~0

Amine please take a look at the patch and push it if it is ok. Then after I
will close the bug.