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

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Jan 28 16:39:32 UTC 2026




Kinsey Moore started a new discussion on cpukit/libcrypt/crypt-sha256.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/957#note_140156

 >  	SHA256_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)
 > +		SHA256_Update(&alt_ctx, salt, salt_len);
 > +#else
 >  	for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt)
 >  		SHA256_Update(&alt_ctx, salt, salt_len);

This can be dropped outside the `#ifdef` since it's a separate line and unmodified.

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


More information about the bugs mailing list