[riot-notifications] [RIOT-OS/RIOT] tests/rng: replace printf_float with fmt/print_float (#10999)

Gaƫtan Harter notifications at github.com
Tue Feb 12 19:00:14 CET 2019


cladmi commented on this pull request.



> @@ -154,7 +154,7 @@ void test_distributions(uint32_t samples)
 
         /* count bits */
         for (int i = 0; i < 32; i++) {
-            if (value & (1 << i)) {
+            if (value & (1u << i)) {

Or even better `UINT32_C(1)` for all architectures indeed. I will update.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10999#discussion_r256076024
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190212/2bdc192c/attachment.html>


More information about the notifications mailing list