aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor C. Richberger <taywee@gmx.com>2019-03-02 14:26:54 -0700
committerTaylor C. Richberger <taywee@gmx.com>2019-03-02 14:26:54 -0700
commit6cd243def4b335efa5a83acb4d29aee482970d2e (patch)
treecb94edcf0bf5591b3b6439d7957460af56c88628
parentMerge pull request #72 from mrkline/fix-sign-warnings (diff)
downloadargs.hxx-6cd243def4b335efa5a83acb4d29aee482970d2e.tar.xz
turn ptrdiff_t into std::ptrdiff_t
-rw-r--r--args.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/args.hxx b/args.hxx
index d7b3ca9..09c1919 100644
--- a/args.hxx
+++ b/args.hxx
@@ -40,6 +40,7 @@
#include <unordered_map>
#include <unordered_set>
#include <type_traits>
+#include <cstddef>
#ifdef ARGS_TESTNAMESPACE
namespace argstest
@@ -2719,7 +2720,7 @@ namespace args
{
curArgs[idx - 1] += "=";
// Avoid warnings from -Wsign-conversion
- const auto signedIdx = static_cast<ptrdiff_t>(idx);
+ const auto signedIdx = static_cast<std::ptrdiff_t>(idx);
if (idx + 1 < curArgs.size())
{
curArgs[idx - 1] += curArgs[idx + 1];