Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/compiler/resinator/ico.zig
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ test "icon data size too small" {
try std.testing.expectError(error.ImpossibleDataSize, read(std.testing.allocator, fbs.reader(), data.len));
}

pub const ImageFormat = enum {
pub const ImageFormat = enum(u2) {
dib,
png,
riff,
Expand Down Expand Up @@ -272,7 +272,7 @@ pub const BitmapHeader = extern struct {
}

/// https://en.wikipedia.org/wiki/BMP_file_format#DIB_header_(bitmap_information_header)
pub const Version = enum {
pub const Version = enum(u3) {
unknown,
@"win2.0", // Windows 2.0 or later
@"nt3.1", // Windows NT, 3.1x or later
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/wasm/markdown/Document.zig
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub const Node = struct {
}
};

pub const TableCellAlignment = enum {
pub const TableCellAlignment = enum(u2) {
unset,
left,
center,
Expand Down
2 changes: 1 addition & 1 deletion lib/std/net.zig
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ pub const Ip4Address = extern struct {
sa: posix.sockaddr.in,

pub fn parse(buf: []const u8, port: u16) IPv4ParseError!Ip4Address {
var result = Ip4Address{
var result: Ip4Address = .{
.sa = .{
.port = mem.nativeToBig(u16, port),
.addr = undefined,
Expand Down
Loading