Skip to content

Commit e60f0d4

Browse files
nocov
1 parent dd19166 commit e60f0d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fwrite.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,13 @@ void writeFloat64(const void *col, int64_t row, char **pch)
241241
if (l % 10 >= 5) l += 10; // use the last digit to round
242242
l /= 10;
243243
if (l == 0) {
244+
# nocov start. Very likely not needed as such numbers (e.g. 2^-1075) likely not representable in R.
244245
if (*(ch - 1) == '-') ch--;
245246
*ch++ = '0';
246247
if (forceDecimal) {
247248
*ch++ = dec;
248249
}
250+
# nocov end
249251
} else {
250252
// Count trailing zeros and therefore s.f. present in l
251253
int trailZero = 0;

0 commit comments

Comments
 (0)