File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ version: 1.0
2
2
shards:
3
3
clang:
4
4
github: ysbaddaden/clang.cr
5
- commit: a1a7a5612d9af79476d409994c529f076fca48ab
5
+ version: 0.3.0
6
6
7
7
minitest:
8
8
github: ysbaddaden/minitest.cr
9
- version: 0.4.2
9
+ version: 0.4.3
10
10
Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ description: |
10
10
dependencies :
11
11
clang :
12
12
github : ysbaddaden/clang.cr
13
- branch : master
13
+ version : " >= 0.3.0 "
14
14
15
15
development_dependencies :
16
16
minitest :
17
17
github : ysbaddaden/minitest.cr
18
+ version : " >= 0.4.3"
18
19
19
20
libraries :
20
- LLVM : 5.0
21
+ LLVM : 8
21
22
22
- crystal_version : 0.24.2
23
+ crystal : 0.29.0
23
24
24
25
license : CeCILL-C
Original file line number Diff line number Diff line change @@ -9,11 +9,10 @@ module Runic
9
9
end
10
10
11
11
module TopLevel
12
- @visited = Atomic ( Int32 ) .new( 0 )
12
+ @visited = Atomic :: Flag .new
13
13
14
14
def visited ?
15
- _, changed = @visited .compare_and_set(0 , 1 )
16
- ! changed
15
+ ! @visited .test_and_set
17
16
end
18
17
end
19
18
You can’t perform that action at this time.
0 commit comments