This repository was archived by the owner on Jul 6, 2018. It is now read-only.
Commit f61cc1c
http2: cast numchars to size_t
Currently when building the following compiler warning is issued:
../src/node_http2_core.cc:204:16: warning: comparison of integers of
different signs: 'ssize_t'
(aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
if (numchars < length) {
~~~~~~~~ ^ ~~~~~~
1 warning generated.
numchars is checked to make sure it is greater than 0 so it should be
safe to cast it to size_t.
PR-URL: #172
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent d4ba711 commit f61cc1c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments