From 7d271cca02e2b5d73023c317d04f81c17139b6fe Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 6 Feb 2014 12:23:07 +0000 Subject: [PATCH] c++ * store commands in uint8_t --- include/llmr/geometry/geometry.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llmr/geometry/geometry.hpp b/include/llmr/geometry/geometry.hpp index f8286402d..2f321934a 100644 --- a/include/llmr/geometry/geometry.hpp +++ b/include/llmr/geometry/geometry.hpp @@ -13,7 +13,7 @@ class Geometry : private util::noncopyable { public: inline explicit Geometry(pbf& data); - enum command { + enum command : uint8_t { end = 0, move_to = 1, line_to = 2, @@ -24,7 +24,7 @@ public: private: pbf& data; - uint32_t cmd; + uint8_t cmd; uint32_t length; int32_t x, y; int32_t ox, oy;