Skip to content

Commit a472424

Browse files
committed
chore: unsafe -> unchecked
1 parent 5e1d93b commit a472424

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/donut/cursed_donut.cpp2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ main: () = {
3434

3535
t: float = c * h * g - f * e;
3636

37-
x: int = cpp2::unsafe_narrow<int>(40 + 30 * D * (l * h * m - t * n));
37+
x: int = cpp2::unchecked_narrow<int>(40 + 30 * D * (l * h * m - t * n));
3838

39-
y: int = cpp2::unsafe_narrow<int>(12 + 15 * D * (l * h * n + t * m));
39+
y: int = cpp2::unchecked_narrow<int>(12 + 15 * D * (l * h * n + t * m));
4040

4141
o: int = x + 80 * y;
4242

43-
N: int = cpp2::unsafe_narrow<int>(8 * ((f * e - c * d * g) * m - c * d * e - f * g - l * d * n));
43+
N: int = cpp2::unchecked_narrow<int>(8 * ((f * e - c * d * g) * m - c * d * e - f * g - l * d * n));
4444
if 22 > y && y > 0 && x > 0 && 80 > x && D > z[0] {
4545
z[o] = D;
4646
if N > 0 { b[o] = brightness_chars[N % brightness_chars.size()]; }

0 commit comments

Comments
 (0)