diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2025-02-11 15:45:52 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2025-02-13 13:42:08 +0200 |
commit | 4abf6fa163c388296c0ed3a45eca267c377f1e73 (patch) | |
tree | 27ae5c92a956b4f0630a2b894fc18ee45ef3648f /mod/mod-ci-github-gh.cxx | |
parent | 46eec12b39db2279ecd15e3681354f566945d5c2 (diff) |
ci-github: Store App id as uint64_t
Diffstat (limited to 'mod/mod-ci-github-gh.cxx')
-rw-r--r-- | mod/mod-ci-github-gh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx index 2e886ac..42afe1b 100644 --- a/mod/mod-ci-github-gh.cxx +++ b/mod/mod-ci-github-gh.cxx @@ -211,9 +211,9 @@ namespace brep // one can be null. It's unclear under what circumstances, but it // shouldn't happen unless something is broken. // - string* v (p.next_expect_number_null ()); + optional<uint64_t> v (p.next_expect_number_null<uint64_t> ()); - if (v == nullptr) + if (!v) throw_json (p, "check_suite.app.id is null"); app_id = *v; @@ -310,7 +310,7 @@ namespace brep // while (p.next_expect (event::name, event::end_object)) { - if (c (ai, "id")) app_id = p.next_expect_number (); + if (c (ai, "id")) app_id = p.next_expect_number<uint64_t> (); else p.next_expect_value_skip (); } |