summaryrefslogtreecommitdiffstats
path: root/lld/ELF/ScriptParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r--lld/ELF/ScriptParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp
index 28efd384bf5..c68c25ad615 100644
--- a/lld/ELF/ScriptParser.cpp
+++ b/lld/ELF/ScriptParser.cpp
@@ -809,7 +809,7 @@ Expr ScriptParser::combine(StringRef Op, Expr L, Expr R) {
if (uint64_t RV = R().getValue())
return L().getValue() / RV;
error(Loc + ": division by zero");
- return (uint64_t)0;
+ return 0;
};
}
if (Op == "%") {
@@ -818,7 +818,7 @@ Expr ScriptParser::combine(StringRef Op, Expr L, Expr R) {
if (uint64_t RV = R().getValue())
return L().getValue() % RV;
error(Loc + ": modulo by zero");
- return (uint64_t)0;
+ return 0;
};
}
if (Op == "<<")
OpenPOWER on IntegriCloud