Skip to content

Commit

Permalink
Fix misplaced preproc that caused msvc builds to report invalid float
Browse files Browse the repository at this point in the history
  • Loading branch information
nirosys committed Dec 6, 2022
1 parent 96a8bc3 commit 460c67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ionc/ion_writer_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ iERR _ion_writer_text_write_double_json(ION_WRITER *pwriter, double value) {
# elif defined(__GNUC__)
case FP_NORMAL:
case FP_SUBNORMAL:
# endif
// TODO this is a terrible way to convert this!
// See: https://github.com/amzn/ion-c/issues/112

Expand All @@ -652,7 +653,6 @@ iERR _ion_writer_text_write_double_json(ION_WRITER *pwriter, double value) {
for (mark = image; *mark == ' '; ) mark++; // strip leading spaces
IONCHECK(_ion_writer_text_append_ascii_cstr(pwriter->output, mark));
break;
# endif
default:
FAILWITH(IERR_UNRECOGNIZED_FLOAT);
}
Expand Down

0 comments on commit 460c67f

Please sign in to comment.