Skip to content

Commit 509ed34

Browse files
committed
Use more space-efficient ints in code element.
1 parent d969473 commit 509ed34

File tree

1 file changed

+4
-5
lines changed
  • include/boost/geometry/srs/projections

1 file changed

+4
-5
lines changed

include/boost/geometry/srs/projections/code.hpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
#ifndef BOOST_GEOMETRY_PROJECTIONS_CODE_HPP
1111
#define BOOST_GEOMETRY_PROJECTIONS_CODE_HPP
1212

13+
#include <cstdint>
1314

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

16-
1717
namespace boost { namespace geometry { namespace projections
1818
{
1919

20-
2120
#ifndef DOXYGEN_NO_DETAIL
2221
namespace detail
2322
{
@@ -43,10 +42,10 @@ namespace detail
4342
};
4443

4544
int code;
46-
int parameter_count;
45+
std::int8_t parameter_count;
4746
// Not bundling the following together into a struct to avoid 8-byte-alignment.
48-
int parameter_ids[MaxParams];
49-
char parameter_variant_tags[MaxParams];
47+
std::int16_t parameter_ids[MaxParams];
48+
std::int8_t parameter_variant_tags[MaxParams];
5049
parameter_variant parameters[MaxParams];
5150
};
5251

0 commit comments

Comments
 (0)