From e76f5388bea068e17b40ba62f219f8e381d3b43b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Aug 2021 03:41:34 -0400 Subject: [PATCH] fix: doom-system-cpus not handling int values ce31880 did not fix doom-system-cpus on msys2 builds because the function didn't handle integer return values from any of its code paths (which formerly returned strings or lists). Ref ce31880ccc31 Fix #5347 --- core/autoload/system.el | 1 + 1 file changed, 1 insertion(+) diff --git a/core/autoload/system.el b/core/autoload/system.el index dee35d3c7..4f98d1ea8 100644 --- a/core/autoload/system.el +++ b/core/autoload/system.el @@ -93,6 +93,7 @@ Tries to be portable. Returns 1 if cannot be determined." (doom-call-process "sysctl" "-n" "hw.ncpu"))))) (max 1 (or (cl-typecase cpus + (integer cpus) (string (condition-case _ (string-to-number cpus)