mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Fixes for 'warning: unsigned value < 0 is always 0' warnings.
This commit is contained in:
parent
7b41c58819
commit
923fe76ae3
@ -138,7 +138,7 @@ XPTHeader *getHeader(const char *filename, nsIAllocator *al) {
|
||||
}
|
||||
|
||||
if (flen > 0) {
|
||||
PRUint32 howmany = PR_Read(in, whole, flen);
|
||||
PRInt32 howmany = PR_Read(in, whole, flen);
|
||||
if (howmany < 0) {
|
||||
NS_ERROR("FAILED: reading typelib file");
|
||||
goto out;
|
||||
|
@ -214,10 +214,6 @@ main(int argc, char **argv)
|
||||
|
||||
if (flen > 0) {
|
||||
size_t rv = fread(whole, 1, flen, in);
|
||||
if (rv < 0) {
|
||||
perror("FAILED: reading typelib file");
|
||||
return 1;
|
||||
}
|
||||
if (rv < flen) {
|
||||
fprintf(stderr, "short read (%d vs %d)! ouch!\n", rv, flen);
|
||||
return 1;
|
||||
|
@ -145,10 +145,6 @@ main(int argc, char **argv)
|
||||
|
||||
if (flen > 0) {
|
||||
size_t rv = fread(whole, 1, flen, in);
|
||||
if (rv < 0) {
|
||||
perror("FAILED: reading typelib file");
|
||||
return 1;
|
||||
}
|
||||
if (rv < flen) {
|
||||
fprintf(stderr, "short read (%d vs %d)! ouch!\n", rv, flen);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user