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:
		| @@ -71,7 +71,7 @@ TEST_CASE("JsonVariant::set() when there is enough memory") { | ||||
|  | ||||
| #ifdef HAS_VARIABLE_LENGTH_ARRAY | ||||
|   SECTION("VLA") { | ||||
|     int n = 16; | ||||
|     size_t n = 16; | ||||
|     char str[n]; | ||||
|  | ||||
|     strcpy(str, "hello"); | ||||
|   | ||||
| @@ -108,7 +108,7 @@ TEST_CASE("JsonVariant::operator[]") { | ||||
| #if defined(HAS_VARIABLE_LENGTH_ARRAY) && \ | ||||
|     !defined(SUBSCRIPT_CONFLICTS_WITH_BUILTIN_OPERATOR) | ||||
|   SECTION("key is a VLA") { | ||||
|     int i = 16; | ||||
|     size_t i = 16; | ||||
|     char vla[i]; | ||||
|     strcpy(vla, "hello"); | ||||
|  | ||||
| @@ -119,7 +119,7 @@ TEST_CASE("JsonVariant::operator[]") { | ||||
|   } | ||||
|  | ||||
|   SECTION("key is a VLA, const JsonVariant") { | ||||
|     int i = 16; | ||||
|     size_t i = 16; | ||||
|     char vla[i]; | ||||
|     strcpy(vla, "hello"); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user