Skip to content

Commit

Permalink
src: avoid compiler warning in node_revert.cc
Browse files Browse the repository at this point in the history
PR-URL: nodejs-private/node-private#26
Reviewed-By: Rod Vagg <r@va.gg>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
jasnell committed Feb 9, 2016
1 parent 7bef1b7 commit b5b5bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/node_revert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit b5b5bb1

Please sign in to comment.