diff options
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 8da358c..85792c9 100644 --- a/init/init.c +++ b/init/init.c @@ -333,7 +333,7 @@ static unsigned int check_free_memory(void) s--; } result = (info.totalram >> s) + (info.totalswap >> s); - if ((unsigned long long) (result * u) > UINT_MAX) { + if (((unsigned long long)result * (unsigned long long)u) > UINT_MAX) { return(UINT_MAX); } else { return(result * u); |