diff options
author | 2021-09-15 22:13:10 -0400 | |
---|---|---|
committer | 2021-09-15 22:13:10 -0400 | |
commit | 92ce4078b1086fcb53fc931fb5a81b9fd54ad509 (patch) | |
tree | 50f4d6ed00420560a5df685636ecc0f64b9a2a46 /src/lib/util/jedparse.cpp | |
parent | 43133765c1f5c0c72850a99ba708e328bf8b0d7e (diff) |
Fix build on systems where size_t is not the same as uint64_t
Diffstat (limited to 'src/lib/util/jedparse.cpp')
-rw-r--r-- | src/lib/util/jedparse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/jedparse.cpp b/src/lib/util/jedparse.cpp index f883aa747b9..b667121b7ba 100644 --- a/src/lib/util/jedparse.cpp +++ b/src/lib/util/jedparse.cpp @@ -194,7 +194,7 @@ int jed_parse(util::random_read &src, jed_data *result) { jed_parse_info pinfo; int i; - uint64_t actual; + std::size_t actual; /* initialize the output and the intermediate info struct */ memset(result, 0, sizeof(*result)); @@ -405,7 +405,7 @@ int jedbin_parse(util::read_stream &src, jed_data *result) /* need at least 4 bytes */ uint8_t buf[4]; - uint64_t actual; + std::size_t actual; if (src.read(&buf[0], 4, actual) || actual != 4) return JEDERR_INVALID_DATA; |