Skip to content

Commit 22ce9f9

Browse files
committed
fix CI
1 parent 8297a53 commit 22ce9f9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"isBackground": true,
2828
"problemMatcher": {
29-
"fileLocation":["relative","${workspaceRoot}/jscomp"],
29+
"fileLocation":["autodetect","${workspaceRoot}/jscomp"],
3030
"owner": "ocaml",
3131
"background": {
3232
"activeOnStart": false,

jscomp/runtime/caml_format.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ let parse_sign_and_base (s : string) =
7272
let sign = ref 1 in
7373
let base = ref Dec in
7474
let i = ref 0 in
75-
(match s.[i.contents] with
75+
(match s.!(i.contents) with
7676
| '-' ->
7777
sign .contents<- -1;
7878
i.contents <- i.contents + 1
7979
| '+' ->
8080
i.contents <- i.contents + 1
8181
| _ -> ());
82-
if s.[i.contents] = '0' then
83-
(match s.[i.contents + 1] with
82+
if s.!(i.contents) = '0' then
83+
(match s.!(i.contents + 1) with
8484
| ('x' | 'X')
8585
-> base .contents<- Hex; i.contents<- i.contents + 2
8686
| ( 'o' | 'O')

jscomp/test/build.ninja

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
bsc_flags = -absname -bs-no-version-header -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others
2+
bsc_flags = -bs-no-version-header -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others
33

44
rule cc
55
command = $bsc -bs-cmi -bs-cmj $bsc_flags -I test $in

scripts/ninja.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ async function testNinja() {
12221222
var ninjaOutput = "build.ninja";
12231223
var ninjaCwd = `test`;
12241224
var templateTestRules = `
1225-
bsc_flags = -absname -bs-no-version-header -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others
1225+
bsc_flags = -bs-no-version-header -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others
12261226
${ruleCC(ninjaCwd)}
12271227
12281228

0 commit comments

Comments
 (0)