Skip to content

Commit 6acb969

Browse files
committed
fix for cpplint
1 parent aec58e6 commit 6acb969

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/_libs/src/ujson/lib/ultrajsonenc.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -829,11 +829,12 @@ int Buffer_AppendDoubleUnchecked(JSOBJ obj, JSONObjectEncoder *enc,
829829
++frac;
830830
}
831831

832-
/* handle rollover, e.g. case 0.99 with prec 1 is 1.0 and case 0.95 with prec is 1.0 as well */
833-
if (frac >= pow10) {
834-
frac = 0;
835-
++whole;
836-
}
832+
// handle rollover, e.g.
833+
// case 0.99 with prec 1 is 1.0 and case 0.95 with prec is 1.0 as well
834+
if (frac >= pow10) {
835+
frac = 0;
836+
++whole;
837+
}
837838

838839
if (enc->doublePrecision == 0) {
839840
diff = value - whole;

0 commit comments

Comments
 (0)