mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
src: avoiding compiler warnings in node_revert.cc
PR-URL: https://github.com/nodejs/node-private/pull/21
This commit is contained in:
parent
2a2d3e1b03
commit
2aa1a85432
|
|
@ -45,7 +45,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);
|
||||
|
|
@ -63,7 +63,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…
Reference in New Issue
Block a user