diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-07-20 12:28:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-07-23 11:16:00 -0700 |
commit | 0c84f369c35bf416071b9ef6d5a401b457fd4a38 (patch) | |
tree | d5e3fd55c7c5113537d14a17ee2406ecbf4b1e19 /core/configuredivecomputerthreads.cpp | |
parent | 8ac0519a9954b58f43bc42dd70c5643169543999 (diff) | |
download | subsurface-0c84f369c35bf416071b9ef6d5a401b457fd4a38.tar.gz |
core: use int16_t for sensor-id
The sensor-id in the sample struct was a uint8_t, with all
the known problems of unsigned integers. In the rest of the
code cylinder ids are signed integers. To avoid confusion,
make it a signed int. int8_t should be enough (max. 127
cylinders). To allow for degenerate cases, use an int16_t.
16k cylinders should be enough for everyone.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/configuredivecomputerthreads.cpp')
0 files changed, 0 insertions, 0 deletions