From 0668a28a94b7f3d013eac7b6bb90ad5a8cf697aa Mon Sep 17 00:00:00 2001 From: Windymelt Date: Mon, 10 Aug 2026 05:47:57 +0900 Subject: [PATCH] fix hash --- comport.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comport.scala b/comport.scala index c0a8724..5131fd4 100644 --- a/comport.scala +++ b/comport.scala @@ -51,8 +51,10 @@ def detectServices(root: os.Path): Either[String, List[String]] = { def fnv1a64(s: String): Long = { var hash = 0xcbf29ce484222325L - for c <- s do hash ^= c.toLong - hash *= 0x100000001b3L + for c <- s do { + hash ^= c.toLong + hash *= 0x100000001b3L + } hash }