Hello there,

Static analyser cppcheck says:

linux-6.15-rc2/drivers/xen/balloon.c:346:24: style: int result is assigned to 
long variable. If the variable is long to avoid loss of information, then you 
have loss of information. [truncLongCastAssignment]

Source code is

    unsigned long i, size = (1 << order);

Maybe better code:

    unsigned long i, size = (1UL << order);

Regards

David Binderman


Reply via email to