From 2c008b0a6e03981414296fed7a661feb1a40dc9f Mon Sep 17 00:00:00 2001 From: Dmitry Kovba Date: Tue, 7 Apr 2026 13:17:51 -0700 Subject: [PATCH] Crash instead of silently truncate on a type overflow --- Sources/ContainerizationEXT4/Integer+Extensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ContainerizationEXT4/Integer+Extensions.swift b/Sources/ContainerizationEXT4/Integer+Extensions.swift index fc2a4ad9..51a07dea 100644 --- a/Sources/ContainerizationEXT4/Integer+Extensions.swift +++ b/Sources/ContainerizationEXT4/Integer+Extensions.swift @@ -32,7 +32,7 @@ extension UInt64 { } public static func / (lhs: Self, rhs: UInt32) -> UInt32 { - (lhs / UInt64(rhs)).lo + UInt32(lhs / UInt64(rhs)) } public static func * (lhs: Self, rhs: UInt32) -> UInt64 {