aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/attrs.cc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-12-08 14:16:06 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2020-12-23 23:41:58 -0600
commitd4870462f8f539adeaa6dca476aff6f1f31e1981 (patch)
treef8726f39c9a3095fa1a5c447a272887108fcccc7 /src/libfetchers/attrs.cc
parent9c143c411b2190a05907416266b0022e5b17dd02 (diff)
Cast variants fully for libc++10
libc++10 seems to be stricter on what it allows in variant conversion. I'm not sure what the rules are here, but this is the minimal change needed to get through the compilation errors.
Diffstat (limited to 'src/libfetchers/attrs.cc')
-rw-r--r--src/libfetchers/attrs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/attrs.cc b/src/libfetchers/attrs.cc
index 720b19fcd..17fc4041f 100644
--- a/src/libfetchers/attrs.cc
+++ b/src/libfetchers/attrs.cc
@@ -11,7 +11,7 @@ Attrs jsonToAttrs(const nlohmann::json & json)
for (auto & i : json.items()) {
if (i.value().is_number())
- attrs.emplace(i.key(), i.value().get<int64_t>());
+ attrs.emplace(i.key(), i.value().get<uint64_t>());
else if (i.value().is_string())
attrs.emplace(i.key(), i.value().get<std::string>());
else if (i.value().is_boolean())