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

Sepehr Ganji (@Sepehr) gitlab at rtems.org
Wed Feb 11 00:16:20 UTC 2026




Sepehr Ganji commented on a discussion on cpukit/libfs/src/fatfs/rtems-fatfs.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/977#note_142374

 >      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;

I'm not sure I got your point, but by "warning" I mean the coverity scan warnings. It's described in #5400. 
When FatFS was merged, a bunch of warnings appeared in the scan. All of them (except this one) is part of the upstream code.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/977#note_142374
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/0807a9a4/attachment-0001.htm>


More information about the bugs mailing list