Skip to content

Commit 2b23b54

Browse files
committed
Portability fixes
1 parent 9482501 commit 2b23b54

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
14: 'ubuntu-22.04',
5151
15: 'ubuntu-22.04',
5252
16: 'ubuntu-22.04',
53-
17: 'ubuntu-latest',
53+
17: 'ubuntu-22.04',
5454
18: 'ubuntu-latest',
5555
19: 'ubuntu-latest',
5656
20: 'ubuntu-latest',
@@ -74,12 +74,12 @@ jobs:
7474
7575
#gcc hosts
7676
for gcc, runon in gcc_map.items():
77-
hosts.append({'os': runon, 'compiler': 'gcc', 'version': gcc, 'module': gcc >= 14,
77+
hosts.append({'os': runon, 'compiler': 'gcc', 'version': gcc, 'module': gcc > 14,
7878
'jobname': f'Linux - GCC{gcc}'})
7979
8080
#gcc containers
8181
for gcc, container in gcc_cont_map.items():
82-
containers.append({'container': container, 'module': gcc >= 14,
82+
containers.append({'container': container, 'module': gcc > 14,
8383
'jobname': f'Linux - GCC{gcc}'})
8484
8585

test/test_ref_counted.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ TEST_CASE( "Atomic") {
187187
Foo(int v) : x(v) {}
188188
};
189189

190-
constexpr int N_THREADS = 8;
191-
constexpr int N_OPS = 100000;
190+
static constexpr int N_THREADS = 8;
191+
static constexpr int N_OPS = 100000;
192192
std::atomic<refcnt_ptr<Foo>> shared(make_refcnt<Foo>(0));
193193

194194
std::vector<std::thread> threads;

0 commit comments

Comments
 (0)