File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,14 @@ static int real( void ) {
246246 p = json_objClose ( p );
247247 p = json_end ( p );
248248#ifdef NO_SPRINTF
249- static char const rslt [] = "{\"data\":[0,0,5000000]}" ;
249+ static char const rslt1 [] = "{\"data\":[0,0,5000000]}" ;
250+ static char const rslt2 [] = "{\"data\":[0,0,5000000]}" ;
250251#else
251- static char const rslt [] = "{\"data\":[0.2,2e-006,5e+006]}" ;
252+ static char const rslt1 [] = "{\"data\":[0.2,2e-006,5e+006]}" ;
253+ static char const rslt2 [] = "{\"data\":[0.2,2e-06,5e+06]}" ;
252254#endif
253- check ( p - buff == sizeof rslt - 1 );
254- check ( 0 == strcmp ( buff , rslt ) );
255+ check ( p - buff == sizeof rslt1 - 1 || p - buff == sizeof rslt2 - 1 );
256+ check ( 0 == strcmp ( buff , rslt1 ) || 0 == strcmp ( buff , rslt2 ) );
255257 done ();
256258}
257259
You can’t perform that action at this time.
0 commit comments