From b54333c67407d6aa263d7f51dff27466cc824e7e Mon Sep 17 00:00:00 2001 From: alexeyzaparovanny Date: Thu, 31 Jan 2019 18:28:50 -0500 Subject: [PATCH] Make it compile nicely on 32 bit ARM platforms with GCC --- include/point.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/point.hpp b/include/point.hpp index adcddcf..40ba277 100644 --- a/include/point.hpp +++ b/include/point.hpp @@ -158,7 +158,11 @@ inline constexpr GenericPoint operator/(T const& lhs, GenericPoint const& }; } +#ifdef __arm__ +using Coord = long int; +#else using Coord = std::ptrdiff_t; +#endif using Coordf = float; using Point = GenericPoint;