aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prog/mutation.go2
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
}