authorgravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2021-04-11 20:16:17+02:00
committergravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2021-04-11 20:16:17+02:00
log89c41f30c3e62e8b5c03457d1f95dc115a27ef15
tree6ce8060db13237523533bb8520dad2c913e94a9a
parenta5007d819a0bd4d247602786a36cabae821f52b9

zig fmt


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

lib/std/meta.zig+1-1
...@@ -1337,7 +1337,7 @@ test "shuffleVectorIndex" {...@@ -1337,7 +1337,7 @@ test "shuffleVectorIndex" {
13371337
1338/// Returns whether `error_union` contains an error.1338/// Returns whether `error_union` contains an error.
1339pub fn isError(error_union: anytype) bool {1339pub fn isError(error_union: anytype) bool {
1340 return if(error_union) |_| false else |_| true;1340 return if (error_union) |_| false else |_| true;
1341}1341}
13421342
1343test "isError" {1343test "isError" {
src/translate_c.zig-1
...@@ -2358,7 +2358,6 @@ fn transInitListExprVector(...@@ -2358,7 +2358,6 @@ fn transInitListExprVector(
2358 expr: *const clang.InitListExpr,2358 expr: *const clang.InitListExpr,
2359 ty: *const clang.Type,2359 ty: *const clang.Type,
2360) TransError!Node {2360) TransError!Node {
2361
2362 const qt = getExprQualType(c, @ptrCast(*const clang.Expr, expr));2361 const qt = getExprQualType(c, @ptrCast(*const clang.Expr, expr));
2363 const vector_type = try transQualType(c, scope, qt, loc);2362 const vector_type = try transQualType(c, scope, qt, loc);
2364 const init_count = expr.getNumInits();2363 const init_count = expr.getNumInits();