RTEMS | cpukit/libfs/fatfs: Resolve sign extension warning (!977)

Joel Sherrill (@joel) gitlab at rtems.org
Sat Jan 31 19:46:24 UTC 2026




Joel Sherrill started a new discussion on cpukit/libfs/src/fatfs/rtems-fatfs.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/977#note_140550

 >      inode_hash = ( inode_hash * 33 ) + (unsigned char) *name;
 >      name++;
 >    }
 > -  inode_hash ^= fno->fsize ^ ( fno->fdate << 16 ) ^ fno->ftime;
 > +  inode_hash ^= fno->fsize ^ ( (uint32_t)fno->fdate << 16 ) ^ fno->ftime;

Any change in contrib code should be in an ifdef __rtems__ conditional.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/977#note_140550
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260131/28bb8073/attachment.htm>


More information about the bugs mailing list