shithub: MicroHs

Download patch

ref: 7cfca2419f93f86d07197aa914fcfd772f3cbb4f
parent: b1484883e8853d1b15924c27dd9d37f386a767f9
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Jan 12 16:34:47 EST 2024

Fix FFS bug.

--- a/src/runtime/config-windows-64.h
+++ b/src/runtime/config-windows-64.h
@@ -52,7 +52,7 @@
 //#pragma warning(disable : 4996)
 #pragma intrinsic(_BitScanForward64)
 static inline int
-FFS(int64_t arg)
+ffs(int64_t arg)
 {
   unsigned long r;
   if (_BitScanForward64(&r, arg))
@@ -60,6 +60,7 @@
   else
     return 0;
 }
+#define FFS ffs
 
 /*
  * This is the character used for comma-separation in printf.
--