diff options
Diffstat (limited to 'lib/compilers/clang.ts')
-rw-r--r-- | lib/compilers/clang.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/clang.ts b/lib/compilers/clang.ts index 3ebad0961..dab518bc7 100644 --- a/lib/compilers/clang.ts +++ b/lib/compilers/clang.ts @@ -216,7 +216,7 @@ export class ClangCompiler extends BaseCompiler { if (startOrEnd === '__START__') { prevStart = match.index + full.length + 1; } else { - devices[triple] = assembly.substr(prevStart, match.index - prevStart); + devices[triple] = assembly.substring(prevStart, match.index); } } return devices; |