diff --git a/location/geofence/hdi_service/geofence_interface_impl.cpp b/location/geofence/hdi_service/geofence_interface_impl.cpp index ec546f202b592a424feb7d0c1e8d3124a6d2ed87..3882879bf93c6a3402fa54b61c3de77ec21c8731 100644 --- a/location/geofence/hdi_service/geofence_interface_impl.cpp +++ b/location/geofence/hdi_service/geofence_interface_impl.cpp @@ -80,8 +80,8 @@ void OnGeofenceEventChange(int32_t geofenceId, GnssLocation* location, int32_t locationNew.speedAccuracy = location->speedAccuracy; locationNew.bearingAccuracy = location->bearingAccuracy; locationNew.timeForFix = location->timeForFix; - locationNew.timeSinceBoot = location->timeSinceBoot; - locationNew.timeUncertainty = location->timeUncertainty; + locationNew.timeSinceBoot = (int64_t)location->timeSinceBoot; + locationNew.timeUncertainty = (int64_t)location->timeUncertainty; if (g_geofenceCallBack != nullptr) { g_geofenceCallBack->ReportGeofenceEvent(geofenceId, locationNew, static_cast(event), timestamp); }