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

From: David Binderman <hidden>
Date: 2016-01-18 15:59:07

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@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help