Browse Source

src: avoid compiler warning in node_revert.cc

PR-URL: https://github.com/nodejs/node-private/pull/26
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
process-exit-stdio-flushing
James M Snell 9 years ago
parent
commit
b5b5bb1e3c
  1. 1
      CHANGELOG.md
  2. 4
      src/node_revert.cc

1
CHANGELOG.md

@ -18,6 +18,7 @@
* [[`1408f7abb1`](https://github.com/nodejs/node/commit/1408f7abb1)] - **module,src**: do not wrap modules with -1 lineOffset (cjihrig) [#4298](https://github.com/nodejs/node/pull/4298)
* [[`1f8e1472cc`](https://github.com/nodejs/node/commit/1f8e1472cc)] - **test**: add test for debugging one line files (cjihrig) [#4298](https://github.com/nodejs/node/pull/4298)
## 2016-01-20, Version 5.5.0 (Stable), @evanlucas
### Notable Changes

4
src/node_revert.cc

@ -25,7 +25,7 @@ void Revert(const char* cve) {
#define V(code, label, _) \
do { \
if (strcmp(cve, label) == 0) { \
Revert(REVERT_ ## code); \
Revert(static_cast<unsigned int>(REVERT_ ## code)); \
return; \
} \
} while (0);
@ -43,7 +43,7 @@ bool IsReverted(const char * cve) {
#define V(code, label, _) \
do { \
if (strcmp(cve, label) == 0) \
return IsReverted(REVERT_ ## code); \
return IsReverted(static_cast<unsigned int>(REVERT_ ## code)); \
} while (0);
REVERSIONS(V)
return false;

Loading…
Cancel
Save