Skip to content

Commit 66732a1

Browse files
committed
Fix compilation for cmake / pure C++
1 parent 923dcee commit 66732a1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/TaskManagerIO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ void TaskManager::setInterruptCallback(InterruptFn handler) {
449449
}
450450

451451
char* TaskManager::checkAvailableSlots(char* data, size_t dataSize) const {
452-
auto maxLen = min(taskid_t(dataSize - 1), taskBlocks[numberOfBlocks - 1]->lastSlot());
452+
auto maxLen = internal_min(taskid_t(dataSize - 1), taskBlocks[numberOfBlocks - 1]->lastSlot());
453453
size_t position = 0;
454454

455455
for(taskid_t i=0; i<numberOfBlocks;i++) {

src/TaskPlatformDeps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ typedef uint32_t sched_t;
411411
#endif // GCC>=5 and !TM_ALLOW_CAPTURED_LAMBDA
412412

413413
#ifndef internal_min
414-
#define internal_min(a, b) ((a) > (b) ? (b) : (a));
414+
#define internal_min(a, b) ((a) > (b) ? (b) : (a))
415415
#endif // internal_min
416416

417417
#ifndef internal_max

0 commit comments

Comments
 (0)