From a58e1ee99c6bb25533ebe2f323e5f7025fe0d114 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 18 Jun 2020 03:40:32 +0800 Subject: [PATCH] delete force convert of type, it's no necessary --- src/UNIX/Semaphore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UNIX/Semaphore.cpp b/src/UNIX/Semaphore.cpp index 9266271..dcc40cd 100644 --- a/src/UNIX/Semaphore.cpp +++ b/src/UNIX/Semaphore.cpp @@ -17,7 +17,7 @@ namespace hgl if(sem_init(ptr,PTHREAD_PROCESS_PRIVATE,0)) { LOG_ERROR(OS_TEXT("sem_init error,max_count=")+OSString::valueOf(max_count)); - delete (sem_t *)ptr; + delete ptr; ptr=nullptr; } }