Skip to content

Commit dcaf2a3

Browse files
chore: update for os to posix rename
1 parent 0b9d6da commit dcaf2a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/phantom/painting/canvas.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ pub fn line(self: *const Self, start: vizops.vector.UsizeVector2, end: vizops.ve
6666
}
6767

6868
pub fn arc(self: *const Self, pos: vizops.vector.UsizeVector2, angles: vizops.vector.Float32Vector2, radius: f32, buffer: []const u8) !void {
69-
const startAngle = std.math.degreesToRadians(f32, angles.value[0]);
70-
const endAngle = std.math.degreesToRadians(f32, angles.value[1]);
69+
const startAngle = std.math.degreesToRadians(angles.value[0]);
70+
const endAngle = std.math.degreesToRadians(angles.value[1]);
7171

7272
const center = vizops.vector.UsizeVector2.init([_]usize{
7373
pos.value[0] - std.math.lossyCast(usize, @cos(startAngle) * radius),

src/phantom/scene/node.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub fn format(self: *const Node, comptime _: []const u8, options: std.fmt.Format
157157
}
158158

159159
pub fn formatName(self: *const Node, optAlloc: ?std.mem.Allocator, writer: anytype) !void {
160-
if (builtin.mode == .Debug and !builtin.strip_debug_info and @hasDecl(std.os.system, "getErrno") and @hasDecl(std.os.system, "fd_t")) {
160+
if (builtin.mode == .Debug and !builtin.strip_debug_info and @hasDecl(std.posix, "errno") and @hasDecl(std.posix.system, "fd_t")) {
161161
const alloc = optAlloc orelse self.allocator;
162162
const debug = try std.debug.getSelfDebugInfo();
163163
const mod = try debug.getModuleForAddress(self.id);

0 commit comments

Comments
 (0)