diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-06-02 18:42:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-02 11:31:00 -0700 |
commit | 78ee3f40a5f3b55b9d98842f7e309b7bba9882c0 (patch) | |
tree | 398e46c9a7e4192c71007608c0b692db756779c1 /mobile-widgets | |
parent | dbd1d1f41a84f1cdb48367087f1372ca7612e9c9 (diff) | |
download | subsurface-78ee3f40a5f3b55b9d98842f7e309b7bba9882c0.tar.gz |
Silence compiler warnings
Silence some compiler warnings about implicit double to int conversions.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 005c5cfb3..0332a218e 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -676,12 +676,12 @@ void QMLManager::refreshDiveList() static void setupDivesite(struct dive *d, struct dive_site *ds, double lat, double lon, const char *locationtext) { if (ds) { - ds->latitude.udeg = lat * 1000000; - ds->longitude.udeg = lon * 1000000; + ds->latitude.udeg = (int) (lat * 1000000); + ds->longitude.udeg = (int) (lon * 1000000); } else { degrees_t latData, lonData; - latData.udeg = lat; - lonData.udeg = lon; + latData.udeg = (int) lat; + lonData.udeg = (int) lon; d->dive_site_uuid = create_dive_site_with_gps(locationtext, latData, lonData, d->when); } } @@ -969,7 +969,7 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q size = tank_info[i].ml; wp = tank_info[i].bar * 1000; } else { - size = cuft_to_l(tank_info[i].cuft) * 1000 / bar_to_atm(psi_to_bar(tank_info[i].psi)); + size = (int) (cuft_to_l(tank_info[i].cuft) * 1000 / bar_to_atm(psi_to_bar(tank_info[i].psi))); wp = psi_to_mbar(tank_info[i].psi); } break; |