From 3aa9fbf972ff88656feb3ddae2a591549f46fa24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Sat, 14 Mar 2020 00:00:01 +0000 Subject: [PATCH] busy_loop: fix type of loop variable! --- userland/gcc/busy_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userland/gcc/busy_loop.c b/userland/gcc/busy_loop.c index e5862c8..25c0a1f 100644 --- a/userland/gcc/busy_loop.c +++ b/userland/gcc/busy_loop.c @@ -8,8 +8,8 @@ void __attribute__ ((noinline)) busy_loop( unsigned long long max, unsigned long long max2 ) { - for (unsigned i = 0; i < max; i++) { - for (unsigned j = 0; j < max2; j++) { + for (unsigned long long i = 0; i < max; i++) { + for (unsigned long long j = 0; j < max2; j++) { __asm__ __volatile__ ("" : "+g" (j), "+g" (j) : :); } }