Skip to content

Commit dd29ed5

Browse files
committed
fix errors
1 parent 40eafcf commit dd29ed5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libipc/platform/mutex_linux.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class mutex {
3737
}
3838

3939
bool valid() const noexcept {
40-
static const tmp[sizeof(pthread_mutex_t)] {};
40+
static const char tmp[sizeof(pthread_mutex_t)] {};
4141
return shm_.valid()
4242
&& (mutex_ != nullptr)
4343
&& (std::memcmp(tmp, mutex_, sizeof(pthread_mutex_t)) != 0);

src/libipc/platform/shm_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ std::uint32_t get_ref(id_t id) {
9090
if (ii->mem_ == nullptr || ii->size_ == 0) {
9191
return 0;
9292
}
93-
return acc_of(mem, ii->size_).load(std::memory_order_acquire);
93+
return acc_of(ii->mem_, ii->size_).load(std::memory_order_acquire);
9494
}
9595

9696
void sub_ref(id_t id) {

0 commit comments

Comments
 (0)