Skip to content

Commit

Permalink
windows: fix Infinity -> maxBound for an Int
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom McLaughlin committed Nov 14, 2024
1 parent f021a38 commit 9225db6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import UnliftIO.Temporary
-- | The longest allowed path for a Unix socket on the current system.
maxUnixSocketLength :: Int
#ifdef mingw32_HOST_OS
maxUnixSocketLength = Infinity
maxUnixSocketLength = maxBound
#elif darwin_host_os
maxUnixSocketLength = 103 -- macOS: 104 with null terminator
#else
Expand Down

0 comments on commit 9225db6

Please sign in to comment.