Skip to content

Commit

Permalink
Fix index out of bounds error when no paths are given
Browse files Browse the repository at this point in the history
  • Loading branch information
PMunch committed May 6, 2024
1 parent 0ea7561 commit 476b7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion futhark.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.13.0"
version = "0.13.1"
author = "PMunch"
description = "A package which uses libclang to parse C headers into Nim files for easy interop"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/futhark.nim
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ macro importcImpl*(defs, outputPath: static[string], compilerArguments, files, i

let
projectMode = files.len == 0
commonPrefix = importDirs.getCommonPrefix
commonPrefix = if importDirs.len == 0: "/" else: importDirs.getCommonPrefix
extraFiles = block:
var files: HashSet[string]
var extraIncludes: HashSet[string]
Expand Down

0 comments on commit 476b7c8

Please sign in to comment.