linux-next/mm/vmscan.c:3751: possible poor choice of data type ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

 [linux-next/mm/vmscan.c:3751]: (style) int result is assigned to long variable.

  const unsigned long nr_pages = 1 << order;

Maybe something like

  const unsigned long nr_pages = 1UL << order;

would be better code.


Regards

David Binderman

 		 	   		  
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]