mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
refactor: ban std.debug.assert (#10168)
* Ban `std.debug.assert` * Create .clangd * Update lint.yml * Update linter.ts * update * lint * Update linter.ts * Update linter.ts * update * Update linter.ts * update * Update linter.ts * more * Update install.zig * words * Remove UB
This commit is contained in:
@@ -865,7 +865,7 @@ pub const OS = struct {
|
||||
/// `@TypeOf(mask)` must be one of u32 (IPv4) or u128 (IPv6)
|
||||
fn netmaskToCIDRSuffix(mask: anytype) ?u8 {
|
||||
const T = @TypeOf(mask);
|
||||
comptime std.debug.assert(T == u32 or T == u128);
|
||||
comptime bun.assert(T == u32 or T == u128);
|
||||
|
||||
const mask_bits = @byteSwap(mask);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user