-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/stats: use int64 for stats counters
This ensures consistent behavior between 32-bit and 64-bit GOARCHes, and makes overflows in methods like Add less likely. While here, add a TODO note about overflows and underflows. For cue-unity/unity#37. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Iac3ca73815a79e6df550c5c4b9a13d894047e25d Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549849 Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters