mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
prog: fix plain priority for integers
This commit is contained in:
parent
b7a87a83f8
commit
2e29b53400
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user