mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fix -Wsign-conversion on GCC 8 (fixes #1715)
				
					
				
			This commit is contained in:
		| @@ -1068,7 +1068,7 @@ TEST_CASE("Overloads") { | ||||
|  | ||||
| #ifdef HAS_VARIABLE_LENGTH_ARRAY | ||||
|   SECTION("char[n], Filter") { | ||||
|     int i = 4; | ||||
|     size_t i = 4; | ||||
|     char vla[i]; | ||||
|     strcpy(vla, "{}"); | ||||
|     deserializeMsgPack(doc, vla, Filter(filter)); | ||||
| @@ -1096,7 +1096,7 @@ TEST_CASE("Overloads") { | ||||
|  | ||||
| #ifdef HAS_VARIABLE_LENGTH_ARRAY | ||||
|   SECTION("char[n], Filter, NestingLimit") { | ||||
|     int i = 4; | ||||
|     size_t i = 4; | ||||
|     char vla[i]; | ||||
|     strcpy(vla, "{}"); | ||||
|     deserializeMsgPack(doc, vla, Filter(filter), NestingLimit(5)); | ||||
| @@ -1124,7 +1124,7 @@ TEST_CASE("Overloads") { | ||||
|  | ||||
| #ifdef HAS_VARIABLE_LENGTH_ARRAY | ||||
|   SECTION("char[n], NestingLimit, Filter") { | ||||
|     int i = 4; | ||||
|     size_t i = 4; | ||||
|     char vla[i]; | ||||
|     strcpy(vla, "{}"); | ||||
|     deserializeMsgPack(doc, vla, NestingLimit(5), Filter(filter)); | ||||
|   | ||||
| @@ -72,7 +72,7 @@ TEST_CASE("deserializeMsgPack(std::istream&)") { | ||||
|  | ||||
| #ifdef HAS_VARIABLE_LENGTH_ARRAY | ||||
| TEST_CASE("deserializeMsgPack(VLA)") { | ||||
|   int i = 16; | ||||
|   size_t i = 16; | ||||
|   char vla[i]; | ||||
|   memcpy(vla, "\xDE\x00\x01\xA5Hello\xA5world", 15); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user