Skip to content

Commit b5b5bb1

Browse files
committed
src: avoid compiler warning in node_revert.cc
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>
1 parent 7bef1b7 commit b5b5bb1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* [[`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)
1919
* [[`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)
2020

21+
2122
## 2016-01-20, Version 5.5.0 (Stable), @evanlucas
2223

2324
### Notable Changes

src/node_revert.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void Revert(const char* cve) {
2525
#define V(code, label, _) \
2626
do { \
2727
if (strcmp(cve, label) == 0) { \
28-
Revert(REVERT_ ## code); \
28+
Revert(static_cast<unsigned int>(REVERT_ ## code)); \
2929
return; \
3030
} \
3131
} while (0);
@@ -43,7 +43,7 @@ bool IsReverted(const char * cve) {
4343
#define V(code, label, _) \
4444
do { \
4545
if (strcmp(cve, label) == 0) \
46-
return IsReverted(REVERT_ ## code); \
46+
return IsReverted(static_cast<unsigned int>(REVERT_ ## code)); \
4747
} while (0);
4848
REVERSIONS(V)
4949
return false;

0 commit comments

Comments
 (0)