aboutsummaryrefslogtreecommitdiff
path: root/round2_32.go
diff options
context:
space:
mode:
authorGravatar Duncan Overbruck <github@duncano.de> 2023-08-24 20:39:33 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-24 20:39:33 +0200
commit6aea1e0d440708a970c8294978b57ee27097bfc5 (patch)
tree56c42e7c231a28d3c46253d240fa9b8b8c1e07c8 /round2_32.go
parentUpdate ErrNoMultipartForm (diff)
downloadfasthttp-6aea1e0d440708a970c8294978b57ee27097bfc5.tar.gz
fasthttp-6aea1e0d440708a970c8294978b57ee27097bfc5.tar.bz2
fasthttp-6aea1e0d440708a970c8294978b57ee27097bfc5.zip
fix round2_32, split round2 tests because they depend on sizeof int at compile time (#1607)
Diffstat (limited to 'round2_32.go')
-rw-r--r--round2_32.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/round2_32.go b/round2_32.go
index 541b85e..2990e42 100644
--- a/round2_32.go
+++ b/round2_32.go
@@ -3,6 +3,8 @@
package fasthttp
+import "math"
+
func roundUpForSliceCap(n int) int {
if n <= 0 {
return 0