From 9269a2e503b430ea1f835c20b69170b38e4d6910 Mon Sep 17 00:00:00 2001
From: Duncan Paterson <duncan.paterson@particle-analytics.com>
Date: Fri, 4 Sep 2015 10:48:46 +0100
Subject: [PATCH] changed variables from size_t to int
---
include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 2 +-
include/boost/spirit/home/qi/numeric/detail/real_impl.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp b/include/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp
index 7e96a37..c901f16 100644
|
a
|
b
|
namespace boost { namespace spirit { namespace qi { namespace detail
|
| 312 | 312 | char_type; |
| 313 | 313 | |
| 314 | 314 | Iterator it = first; |
| 315 | | std::size_t leading_zeros = 0; |
| | 315 | int leading_zeros = 0; |
| 316 | 316 | if (!Accumulate) |
| 317 | 317 | { |
| 318 | 318 | // skip leading zeros |
diff --git a/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp b/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp
index cf92712..913c771 100644
|
a
|
b
|
namespace boost { namespace spirit { namespace traits
|
| 65 | 65 | { |
| 66 | 66 | if (exp >= 0) |
| 67 | 67 | { |
| 68 | | std::size_t max_exp = std::numeric_limits<T>::max_exponent10; |
| | 68 | int max_exp = std::numeric_limits<T>::max_exponent10; |
| 69 | 69 | |
| 70 | 70 | // return false if exp exceeds the max_exp |
| 71 | 71 | // do this check only for primitive types! |