mirror of
https://github.com/golang/go
synced 2024-11-22 15:24:42 -07:00
b3040679ad
Fixes #68322
This reverts commit ad377e906a
.
Change-Id: Ifa4811e2c679d789cc830dbff5e50301410e24d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/596516
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Commit-Queue: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
18 lines
351 B
Go
18 lines
351 B
Go
// run
|
|
|
|
// Copyright 2024 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import "math"
|
|
|
|
var doNotFold = 18446744073709549568.0
|
|
|
|
func main() {
|
|
if math.Trunc(doNotFold) != doNotFold {
|
|
panic("big (over 2**63-1) math.Trunc is incorrect")
|
|
}
|
|
}
|