From dbb39475d982e8126fdbdb3e075f538a04ed460b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 28 Apr 2018 23:24:49 +0200 Subject: [PATCH] Upgrade variables to 64 bit --- bin/core/imag-gps/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/core/imag-gps/src/main.rs b/bin/core/imag-gps/src/main.rs index 5378fac6..a4415594 100644 --- a/bin/core/imag-gps/src/main.rs +++ b/bin/core/imag-gps/src/main.rs @@ -94,7 +94,7 @@ fn add(rt: &Runtime) { .map_err_trace_exit_unwrap(1); let c = { - let parse = |value: &str| -> (i32, i32, i32) { + let parse = |value: &str| -> (i64, i64, i64) { debug!("Parsing '{}' into degree, minute and second", value); let ary = value.split(".") .map(|v| {debug!("Parsing = {}", v); v}) @@ -103,7 +103,7 @@ fn add(rt: &Runtime) { elem.or_else(|_| Err(GE::from(GEK::NumberConversionError))) .map_err_trace_exit_unwrap(1) }) - .collect::>(); + .collect::>(); let degree = ary.get(0).unwrap_or_else(|| { error!("Degree missing. This value is required.");