ec.c:28 warning: comparison of integers of different signs: 'int' and 'unsigned long'
Categories
(NSS :: Build, defect, P2)
Tracking
(Not tracked)
People
(Reporter: hi.himanshu14, Assigned: hi.himanshu14)
Details
Attachments
(1 file, 2 obsolete files)
394 bytes,
patch
|
kjacobs
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
Steps to reproduce:
Build warning noticed while compiling Mozilla-central.
In for loop sizeof(kMethod) produced unsigned long that compare with signed int 'i' that is an iterator.
The compiler will cast 'i' as unsigned long before doing the comparison.
Actual results:
The compiler will cast 'i' as unsigned long before doing the comparison.
Expected results:
initialize 'i' iterator with unsigned long so, the compiler doesn't have to take the load for it or doesn't have to cast it at compile time every time.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
I have fix for this bug, can i push it.
Assignee | ||
Comment 2•5 years ago
|
||
I have fix for this bug, can i push it.
Assignee | ||
Comment 3•5 years ago
|
||
I have fix for this bug, can i push it.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Thanks for the report. Could you please attach your patch above? The current attachment does not seem to contain any changes.
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Warning Fixed file
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Kevin Jacobs [:kjacobs] from comment #4)
Thanks for the report. Could you please attach your patch above? The current attachment does not seem to contain any changes.
Done
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
Attaching diff of the patched file, r+
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Description
•