RTEMS | cpukit/libfs/fatfs: Resolve sign extension warning (!977)
Joel Sherrill (@joel)
gitlab at rtems.org
Wed Feb 11 00:12:30 UTC 2026
Joel Sherrill commented on a discussion on cpukit/libfs/src/fatfs/rtems-fatfs.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/977#note_142370
> 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;
@opticron and I thought that main was warning free. How was this missed?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/977#note_142370
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/20260211/8ea7fa0a/attachment.htm>
More information about the bugs
mailing list