Fossil SCM
gzip.c:70:13: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] aHdr[9] = 255; ~ ^~~
Commit
fe1332ca2c751d72fe3901c0ee74ff3f13871eaeb478abf10aa87989f60c1f33
Parent
613fe1b1fb4afc0…
1 file changed
+1
-1
+1
-1
| --- src/gzip.c | ||
| +++ src/gzip.c | ||
| @@ -65,11 +65,11 @@ | ||
| 65 | 65 | if( now==-1 ){ |
| 66 | 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | 67 | } |
| 68 | 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | 69 | aHdr[8] = 2; |
| 70 | - aHdr[9] = 255; | |
| 70 | + aHdr[9] = -1; | |
| 71 | 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | 72 | gzip.iCRC = 0; |
| 73 | 73 | gzip.eState = 1; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -65,11 +65,11 @@ | |
| 65 | if( now==-1 ){ |
| 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | } |
| 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | aHdr[8] = 2; |
| 70 | aHdr[9] = 255; |
| 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | gzip.iCRC = 0; |
| 73 | gzip.eState = 1; |
| 74 | } |
| 75 | |
| 76 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -65,11 +65,11 @@ | |
| 65 | if( now==-1 ){ |
| 66 | now = db_int64(0, "SELECT (julianday('now') - 2440587.5)*86400.0"); |
| 67 | } |
| 68 | put32(&aHdr[4], now&0xffffffff); |
| 69 | aHdr[8] = 2; |
| 70 | aHdr[9] = -1; |
| 71 | blob_append(&gzip.out, aHdr, 10); |
| 72 | gzip.iCRC = 0; |
| 73 | gzip.eState = 1; |
| 74 | } |
| 75 | |
| 76 |