diff options
| author | Veronica Radu <veronicaradu@google.com> | 2019-10-02 10:23:25 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-10-02 11:14:42 +0200 |
| commit | 2e29b534005e52c57d726201644ea28ba33a9a3d (patch) | |
| tree | a8b88e33797d0e0bcceaed2d40ce2aadfd97ef63 /prog/mutation.go | |
| parent | b7a87a83f8bdbe141f04275ab84bd0f38ce1d4a9 (diff) | |
prog: fix plain priority for integers
Diffstat (limited to 'prog/mutation.go')
| -rw-r--r-- | prog/mutation.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/mutation.go b/prog/mutation.go index f19813148..8e59880a5 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -479,7 +479,7 @@ func (ma *mutationArgs) collectArg(arg Arg, ctx *ArgCtx) { func (t *IntType) getMutationPrio(target *Target, arg Arg, ignoreSpecial bool) (prio float64, stopRecursion bool) { // For a integer without a range of values, the priority is based on // the number of bits occupied by the underlying type. - plainPrio := math.Log2((float64(t.Size() * 8))) + 0.1*maxPriority + plainPrio := math.Log2(float64(t.TypeBitSize())) + 0.1*maxPriority if t.Kind != IntRange { return plainPrio, false } |
