aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-08-12 23:35:11 +0300
committerVexu <git@vexu.eu>2020-08-13 01:13:17 +0300
commit373488157751dbaa22415ce842c4f5616fc845ff (patch)
treefaa6c045484c41b141ed7dce97c6f4a0346a01e8 /lib/std/special
parent67d684d89aeb0bb3cfa86c57e8d77359d45743fa (diff)
downloadzig-373488157751dbaa22415ce842c4f5616fc845ff.tar.gz
zig-373488157751dbaa22415ce842c4f5616fc845ff.zip
add error for unused/duplicate block labels
Diffstat (limited to 'lib/std/special')
-rw-r--r--lib/std/special/c.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/special/c.zig b/lib/std/special/c.zig
index c769bc358b..170bb98620 100644
--- a/lib/std/special/c.zig
+++ b/lib/std/special/c.zig
@@ -536,7 +536,7 @@ fn generic_fmod(comptime T: type, x: T, y: T) T {
// normalize x and y
if (ex == 0) {
i = ux << exp_bits;
- while (i >> bits_minus_1 == 0) : (b: {
+ while (i >> bits_minus_1 == 0) : ({
ex -= 1;
i <<= 1;
}) {}
@@ -547,7 +547,7 @@ fn generic_fmod(comptime T: type, x: T, y: T) T {
}
if (ey == 0) {
i = uy << exp_bits;
- while (i >> bits_minus_1 == 0) : (b: {
+ while (i >> bits_minus_1 == 0) : ({
ey -= 1;
i <<= 1;
}) {}
@@ -573,7 +573,7 @@ fn generic_fmod(comptime T: type, x: T, y: T) T {
return 0 * x;
ux = i;
}
- while (ux >> digits == 0) : (b: {
+ while (ux >> digits == 0) : ({
ux <<= 1;
ex -= 1;
}) {}