https://github.com/gpsbabel/gpsbabel/commit/465a74194d53acea5c8d74c5cf3cb2940546ec92.patch Can be removed next release From 465a74194d53acea5c8d74c5cf3cb2940546ec92 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 7 Aug 2020 11:29:22 -0600 Subject: [PATCH] fix i386 regression error with engima. (#620) this was motivated by the test failure seen at https://buildd.debian.org/status/fetch.php?pkg=gpsbabel&arch=i386&ver=1.7.0%2Bds-4&stamp=1596794554&raw=0 --- enigma.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/enigma.cc b/enigma.cc index 850f27b4e..32fea92d6 100644 --- a/enigma.cc +++ b/enigma.cc @@ -21,9 +21,16 @@ */ +#include // for fabs, lround +#include // for int32_t, uint8_t, uint32_t +#include // for abs +#include // for strlen, memcpy, memset + +#include // for QString + #include "defs.h" -#include -#include +#include "gbfile.h" // for gbfclose, gbfopen_le, gbfread, gbfwrite, gbfile + #define MYNAME "Enigma binary route and waypoint file format" @@ -177,7 +184,7 @@ enigma_waypt_disp(const Waypoint* wpt) le_write32(&ewpt.longitude, decToEnigmaPosition(wpt->longitude)); ewpt.waypoint_type = WTYPE_WAYPOINT; if (wpt->altitude != unknown_alt) { - le_write32(&ewpt.data.wp_altitude, METERS_TO_FEET(wpt->altitude) + 1000); + le_write32(&ewpt.data.wp_altitude, lround(METERS_TO_FEET(wpt->altitude)) + 1000); } if (wpt->shortname != nullptr) { ewpt.shortname_len = (uint8_t) min(6, strlen(CSTRc(wpt->shortname))); b3d91b17c1d7c0'/>
AgeCommit message (Expand)Author
2020-11-26gnu: lean: Trim synopsis....* gnu/packages/lean.scm (lean)[synopsis]: Remove article & package name. Tobias Geerinckx-Rice
2020-09-04gnu: fpc: Fix reproducibility problem....* gnu/packages/pascal.scm (fpc)[arguments]: Add 'patch-release-date' to replace a buil
2020-07-19gnu: lean: Disable test cases for i686 and armhf....* gnu/packages/lean.scm (lean)[arguments]: Individual test cases are currently failing for 32-bit architectures. Disable them temporarily pending further investigation as to resolution. Brett Gilio
2020-07-19gnu: lean: Update to 3.17.1....* gnu/packages/lean.scm (lean): Update to 3.17.1. Brett Gilio
2020-03-28Update email address and Savannah handle for Amin Bandali....* .mailmap, gnu/local.mk, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm, gnu/packages/fonts.scm, gnu/packages/fpga.scm, gnu/packages/lean.scm, gnu/packages/maths.scm, gnu/packages/pulseaudio.scm: Update my email address. * build-aux/git-authenticate.scm: Update my Savannah handle. Amin Bandali
2020-01-17Update email address for Amin Bandali....* .mailmap: Add name and email addresses for Amin Bandali. * gnu/local.mk, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm, gnu/packages/fpga.scm, gnu/packages/lean.scm, gnu/packages/maths.scm: Update email address for Amin Bandali. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> Amin Bandali
2020-01-03gnu: Add lean....* gnu/local.mk (GNU_SYSTEM_MODULES): Add lean.scm. * gnu/packages/lean.scm: New file. Signed-off-by: Brett Gilio <brettg@gnu.org> Amin Bandali