Skip to content

Commit 7f03b95

Browse files
chore: fix clang compilation error
1 parent 6f1621b commit 7f03b95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/include/measurement.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ ALWAYS_INLINE uint64_t measurement_current_timestamp() {
6969
return instrument_hooks_current_timestamp();
7070
}
7171

72-
ALWAYS_INLINE int8_t measurement_add_marker(uint8_t marker_type,
73-
uint64_t timestamp) {
74-
auto pid = getpid();
72+
ALWAYS_INLINE uint8_t measurement_add_marker(uint8_t marker_type,
73+
uint64_t timestamp) {
74+
auto pid = static_cast<uint32_t>(getpid());
7575
return instrument_hooks_add_marker(g_hooks, pid, marker_type, timestamp);
7676
}
7777

0 commit comments

Comments
 (0)