Skip to content

Commit

Permalink
fix ks_pid_t type overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
suzp1984 committed Feb 4, 2025
1 parent e4a7d8b commit d2cae9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/include/libks/ks_threadmutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ typedef void *(*ks_thread_function_t) (ks_thread_t *, void *);
#ifdef KS_PLAT_WIN
typedef void * ks_thread_os_handle_t;
typedef DWORD ks_pid_t;
#else
#elif KS_PLAT_LIN
typedef pid_t ks_pid_t;
typedef pthread_t ks_thread_os_handle_t;
#else
typedef uint64_t ks_pid_t;
typedef pthread_t ks_thread_os_handle_t;
#endif

typedef enum {
Expand Down

0 comments on commit d2cae9c

Please sign in to comment.