diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-11-18 10:17:34 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-11-18 10:17:34 -0600 |
commit | 0711635a7449707c4e77ff1073856781aa309995 (patch) | |
tree | 21be19d0eb25983ad5d40e1a2ec1a733feb82d59 /src | |
parent | 1e8a95d76fd30fcf4ba3949fc63a5e6ce9ec8d52 (diff) | |
download | sddm-0711635a7449707c4e77ff1073856781aa309995.tar.gz sddm-0711635a7449707c4e77ff1073856781aa309995.tar.bz2 sddm-0711635a7449707c4e77ff1073856781aa309995.zip |
size_t -> int in is_slot_early()
This commit updates the crate, card, and channel variables in is_slot_early()
to be ints instead of size_ts. The reason is I saw a warning when building with
clang and realized that the abs(card - flasher_card) == 1 check wasn't working
if flasher_card was 1 greater than card because I was using unsigned ints.
Diffstat (limited to 'src')
-rw-r--r-- | src/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -683,8 +683,8 @@ int is_slot_early(event *ev, int flasher_pmt_id) double flasher_pos[3]; double pmt_dir[3]; double distance; - size_t crate, card, channel; - size_t flasher_crate, flasher_card, flasher_channel; + int crate, card, channel; + int flasher_crate, flasher_card, flasher_channel; flasher_crate = flasher_pmt_id/512; flasher_card = (flasher_pmt_id % 512)/32; |