RTEMS | cpukit/libcrypt: Address -Wsign-compare warnings (!957)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Jan 28 17:03:44 UTC 2026




Joel Sherrill commented on a discussion on cpukit/libcrypt/crypt-sha512.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/957#note_140171

 >  	SHA512_Init(&alt_ctx);
 >  
 >  	/* For every character in the password add the entire password. */
 > +#ifdef __rtems__
 > +	for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt)
 > +		SHA512_Update(&alt_ctx, salt, salt_len);
 > +#else
 >  	for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt)
 >  		SHA512_Update(&alt_ctx, salt, salt_len);

Updated in push.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/957#note_140171
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/20260128/b0a0b462/attachment-0001.htm>


More information about the bugs mailing list