Blob Blame History Raw
From c8853367b0ad6ff6e76188e639a8e7f0706d4431 Mon Sep 17 00:00:00 2001
From: Dominik Thalhammer <dominik@thalhammer.it>
Date: Wed, 29 Jul 2020 20:36:56 +0200
Subject: [PATCH] Fix build failure with GCC10.1 and Werror

As found using jwt-cpp by @markus456 in issue Thalhammer/jwt-cpp#92
---
 picojson.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/picojson.h b/picojson.h
index 346cf05..e127617 100644
--- a/picojson.h
+++ b/picojson.h
@@ -384,7 +384,7 @@ GET(array, *u_.array_)
 GET(object, *u_.object_)
 #ifdef PICOJSON_USE_INT64
 GET(double,
-    (type_ == int64_type && (const_cast<value *>(this)->type_ = number_type, const_cast<value *>(this)->u_.number_ = u_.int64_),
+    (type_ == int64_type && (const_cast<value *>(this)->type_ = number_type, (const_cast<value *>(this)->u_.number_ = u_.int64_)),
      u_.number_))
 GET(int64_t, u_.int64_)
 #else