Skip to content

Commit 9fb7f43

Browse files
committed
tests/float_short_test.c: Formatting
1 parent a3872f0 commit 9fb7f43

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/float_short_test.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ float_to_short_test (void)
4646
{
4747
static float fpos [] =
4848
{ 0.95, 0.99, 1.0, 1.01, 1.1, 2.0, 11.1, 111.1, 2222.2, 33333.3,
49-
// Some "almost 1" as corner cases
50-
32767./32768., (32767. + 0.4)/32768., (32767. + 0.5)/32768., (32767. + 0.6)/32768., (32767. + 0.9)/32768.,
49+
// Some "almost 1" as corner cases
50+
32767.0 / 32768.0, (32767.0 + 0.4) / 32768.0, (32767. + 0.5) / 32768.0,
51+
(32767.0 + 0.6) / 32768.0, (32767.0 + 0.9) / 32768.0,
5152
} ;
5253
static float fneg [] =
5354
{ -0.95, -0.99, -1.0, -1.01, -1.1, -2.0, -11.1, -111.1, -2222.2, -33333.3,
54-
// Some "almost 1" as corner cases
55-
-32767./32768., -(32767. + 0.4)/32768., -(32767. + 0.5)/32768., -(32767. + 0.6)/32768., -(32767. + 0.9)/32768.,
55+
// Some "almost 1" as corner cases
56+
-32767.0 / 32768.0, -(32767.0 + 0.4) / 32768.0, -(32767.0 + 0.5) / 32768.0,
57+
-(32767.0 + 0.6) / 32768.0, -(32767.0 + 0.9) / 32768.0,
5658
} ;
5759

5860
static short out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;

0 commit comments

Comments
 (0)