Mercurial > octave
changeset 31401:21fd38c1f825
ls-mat5: Avoid explicit use of "unsigned long long" literals.
* libinterp/corefcn/ls-mat5.cc (read_mat5_binary_file_header): Avoid potential
issues on platforms that don't have an "unsigned long long" data type.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 06 Nov 2022 17:39:06 +0100 |
parents | e7fc6251b698 |
children | 821cdacfdca7 |
files | libinterp/corefcn/ls-mat5.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/ls-mat5.cc Sat Nov 05 19:15:13 2022 +0100 +++ b/libinterp/corefcn/ls-mat5.cc Sun Nov 06 17:39:06 2022 +0100 @@ -1567,7 +1567,8 @@ if (swap) swap_bytes<8> (&subsys_offset, 1); - if (subsys_offset != 0x2020202020202020ULL && subsys_offset != 0ULL) + if (subsys_offset != UINT64_C (0x2020202020202020) + && subsys_offset != UINT64_C (0)) { // Read the subsystem data block is.seekg (subsys_offset, std::ios::beg);