authorgravatar for hong@hspak.comHong Shick Pak <hong@hspak.com> 2019-08-29 21:23:49-07:00
committergravatar for hong@hspak.comHong Shick Pak <hong@hspak.com> 2019-08-29 21:23:49-07:00
log19964f5dc80792eb50cb3a45bdabe887a92d92cc
treebb6262371c890ee9b374dc049dd0a47409359c6c
parent9f4d44bc491b907dbe11fbc8cd70749606b2236c

run new zig fmt and remove stale comment


2 files changed, 7 insertions(+), 7 deletions(-)

std/special/compiler_rt/comparetf2.zig+7-6
......@@ -38,12 +38,14 @@ pub extern fn __letf2(a: f128, b: f128) c_int {
3838
3939 // If at least one of a and b is positive, we get the same result comparing
4040 // a and b as signed integers as we would with a floating-point compare.
41 return if ((aInt & bInt) >= 0) if (aInt < bInt)
42 LE_LESS
43 else if (aInt == bInt)
44 LE_EQUAL
41 return if ((aInt & bInt) >= 0)
42 if (aInt < bInt)
43 LE_LESS
44 else if (aInt == bInt)
45 LE_EQUAL
46 else
47 LE_GREATER
4548 else
46 LE_GREATER else
4749 // Otherwise, both are negative, so we need to flip the sense of the
4850 // comparison to get the correct result. (This assumes a twos- or ones-
4951 // complement integer representation; if integers are represented in a
......@@ -73,7 +75,6 @@ pub extern fn __getf2(a: f128, b: f128) c_int {
7375
7476 if (aAbs > infRep or bAbs > infRep) return GE_UNORDERED;
7577 if ((aAbs | bAbs) == 0) return GE_EQUAL;
76 // zig fmt issue here, see https://github.com/ziglang/zig/issues/2661
7778 return if ((aInt & bInt) >= 0)
7879 if (aInt < bInt)
7980 GE_LESS
std/zig/render.zig-1
......@@ -276,7 +276,6 @@ fn renderTopLevelDecl(allocator: *mem.Allocator, stream: var, tree: *ast.Tree, i
276276 } else {
277277 try renderExpression(allocator, stream, tree, indent, start_col, field.type_expr.?, Space.Comma); // type,
278278 }
279
280279 } else if (field.type_expr == null and field.value_expr != null) {
281280 try renderToken(tree, stream, field.name_token, indent, start_col, Space.Space); // name
282281 try renderToken(tree, stream, tree.nextToken(field.name_token), indent, start_col, Space.Space); // =