Bug 630

Summary: Wimax doesn't compile with gcc-3.4.x
Product: ns-3 Reporter: Faker Moatamri <faker.moatamri>
Component: wimaxAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: amine.ismail, faker.moatamri
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: Remove the negative one values and replaced by ~0

Description Faker Moatamri 2009-07-08 12:04:15 UTC
 
Comment 1 Faker Moatamri 2009-07-08 12:05:51 UTC
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 Faker Moatamri 2009-07-08 12:13:32 UTC
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 Faker Moatamri 2009-07-08 12:19:20 UTC
Created attachment 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.