Skip to content

Commit

Permalink
Try to fix platforms with more than 3 segments in architecture string
Browse files Browse the repository at this point in the history
  • Loading branch information
DitherWither committed Aug 22, 2024
1 parent 669d5c5 commit ac946fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_ffi.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ os() ->
Tokens = string:tokens(ArchitectureString, "-"),
unicode:characters_to_binary(
case length(Tokens) of
3 -> lists:nth(3, Tokens);
n when n >= 3 -> lists:nth(3, Tokens);
2 -> lists:nth(2, Tokens)
end
).
Expand Down

0 comments on commit ac946fe

Please sign in to comment.