Skip to content

Commit 49ae2e0

Browse files
committed
src: avoid compiler warning in node_revert.cc
PR-URL: nodejs-private/node-private#20
1 parent cf2b714 commit 49ae2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_revert.cc

+2-2
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)