From feeac395067e88ceeb0f10e2a1c3610e324bf95c Mon Sep 17 00:00:00 2001 From: Robert Thompson Date: Tue, 28 Jan 2020 17:53:23 -0500 Subject: [PATCH] Whoops, this is better --- Sources/BigInt/BigInt.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/BigInt/BigInt.swift b/Sources/BigInt/BigInt.swift index 9d7a43f..5d9fd30 100644 --- a/Sources/BigInt/BigInt.swift +++ b/Sources/BigInt/BigInt.swift @@ -644,7 +644,7 @@ extension BigInt { (quot[j], r) = v.dividingFullWidth((r, uj)) } - if quot[1] > UInt(Int.max) { + if quot[u.count - 1] > UInt(Int.max) { quot.append(0) }