Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CppUTest: fix integer conversion warning in gettid() #87

Merged
merged 1 commit into from
Feb 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/CppUTest/src/UtestPlatformGcc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// kernel 2.4.11. Library support was added in glibc 2.30. (Earlier
// glibc versions did not provide a wrapper for this system call,
// necessitating the use of syscall(2).)
static inline pid_t gettid(void) { return syscall( __NR_gettid ); }
static inline pid_t gettid(void) { return (pid_t)syscall(__NR_gettid); }
#endif

#include "CppUTest/PlatformSpecificFunctions.h"
Expand Down