diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 17:19:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 17:26:46 -0700 |
commit | 788d65a527b8daf511ca70c33b14bf88cf1a37b0 (patch) | |
tree | 2b42ea6142d7150e277e240b0ee5c746c821e3de /subsurface-core/gas-model.c | |
parent | 41bc8003d57e88590178ce0bce31406b718cc5ea (diff) | |
download | subsurface-788d65a527b8daf511ca70c33b14bf88cf1a37b0.tar.gz |
Make code easier to read (and avoid warning)
The old expression wass correct because if dive_table.dives[j]->number is != 0,
then !dive_table.dives[j]->number is 0 and vice versa. But come on...
The new code seems much more natural and easier to read.
And of course the Apple compilers by default gave a warning because they
suspected a precedence bug with the old code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/gas-model.c')
0 files changed, 0 insertions, 0 deletions