Skip to content

Commit

Permalink
Use more space-efficient ints in code element.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinko92 committed Nov 11, 2023
1 parent d969473 commit 509ed34
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/boost/geometry/srs/projections/code.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
#ifndef BOOST_GEOMETRY_PROJECTIONS_CODE_HPP
#define BOOST_GEOMETRY_PROJECTIONS_CODE_HPP

#include <cstdint>

#include <boost/geometry/srs/projections/dpar.hpp>


namespace boost { namespace geometry { namespace projections
{


#ifndef DOXYGEN_NO_DETAIL
namespace detail
{
Expand All @@ -43,10 +42,10 @@ namespace detail
};

int code;
int parameter_count;
std::int8_t parameter_count;
// Not bundling the following together into a struct to avoid 8-byte-alignment.
int parameter_ids[MaxParams];
char parameter_variant_tags[MaxParams];
std::int16_t parameter_ids[MaxParams];
std::int8_t parameter_variant_tags[MaxParams];
parameter_variant parameters[MaxParams];
};

Expand Down

0 comments on commit 509ed34

Please sign in to comment.