summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/c/smp-dmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/c/smp-dmi.c b/perl-install/c/smp-dmi.c
index c42f83a9c..241d8f464 100644
--- a/perl-install/c/smp-dmi.c
+++ b/perl-install/c/smp-dmi.c
@@ -296,5 +296,7 @@ int intelDetectSMP(void) {
}
int dmiDetectMemory(void) {
- return max(dmi_detect(memory_in_MB_type6), dmi_detect(memory_in_MB_type17));
+ int s1 = dmi_detect(memory_in_MB_type6);
+ int s2 = dmi_detect(memory_in_MB_type17);
+ return s1 > s2 ? s1 : s2;
}