Changeset 78ee3f4 in subsurface


Ignore:
Timestamp:
Jun 2, 2017, 11:31:00 AM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
03e7710
Parents:
dbd1d1f4
git-author:
Jan Mulder <jlmulder@…> (06/02/17 09:42:23)
git-committer:
Dirk Hohndel <dirk@…> (06/02/17 11:31:00)
Message:

Silence compiler warnings

Silence some compiler warnings about implicit double to int conversions.

Signed-off-by: Jan Mulder <jlmulder@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qmlmanager.cpp

    rdbd1d1f4 r78ee3f4  
    677677{
    678678        if (ds) {
    679                 ds->latitude.udeg = lat * 1000000;
    680                 ds->longitude.udeg = lon * 1000000;
     679                ds->latitude.udeg = (int) (lat * 1000000);
     680                ds->longitude.udeg = (int) (lon * 1000000);
    681681        } else {
    682682                degrees_t latData, lonData;
    683                 latData.udeg = lat;
    684                 lonData.udeg = lon;
     683                latData.udeg = (int) lat;
     684                lonData.udeg = (int) lon;
    685685                d->dive_site_uuid = create_dive_site_with_gps(locationtext, latData, lonData, d->when);
    686686        }
     
    970970                                        wp = tank_info[i].bar * 1000;
    971971                                } else {
    972                                         size = cuft_to_l(tank_info[i].cuft) * 1000 / bar_to_atm(psi_to_bar(tank_info[i].psi));
     972                                        size = (int) (cuft_to_l(tank_info[i].cuft) * 1000 / bar_to_atm(psi_to_bar(tank_info[i].psi)));
    973973                                        wp = psi_to_mbar(tank_info[i].psi);
    974974                                }
Note: See TracChangeset for help on using the changeset viewer.