Linus Torvalds wrote: > From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx> > Date: Thu, 24 Apr 2008 14:45:43 -0700 > > Whether it's a sign-extending cast or not depends on the source > of the cast, not destination. The final size of the cast depends > on the destination, of course. > > Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> > --- > In thread "[PATCH] RxRPC: Fix a regression in the RXKAD security module" > > On Thu, 24 Apr 2008, Linus Torvalds wrote: >> Ok, that looks stupid, and should even have had a warning (shifting a u16 >> right by 16 should warn about it being pointless, but doesn't, because the >> compiler quietly expands it to "int" in the meantime). >> >> Hmm. I could do something to sparse that warns about that too. > > Something along the lines of this? Applied and pushed. - Josh Triplett
Attachment:
signature.asc
Description: OpenPGP digital signature