dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit a65ae6fd93c6e877caf39feac5fe6bcfcbe68ddd
parent bd884d173c6c7dca2eb31dcf76b9119641a6f047
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu,  7 Dec 2023 18:00:31 -0500

fix for go 1.19

Diffstat:
Mpkg/web/handlers/poker/poker.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -783,7 +783,7 @@ func processPot(winners []GameResult, nbPlayers, mainPot int) (winnersStr, winne if p.Cash == 0 { // all-in allInCount++ maxGain := p.RoundTotalBet * nbPlayers - piece := min(maxGain, expectedSplit) + piece := utils.MinInt(maxGain, expectedSplit) res = append(res, PlayerGain{p, piece}) mainPot -= piece winnersStr += p.Username