Skip to content

Commit f204b3d

Browse files
committed
fix: use 0 instead of nullptr for unsigned int return types
1 parent ecdb5c0 commit f204b3d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Core/Tools/mangler/wlib/threadfac.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ bit8 ThreadFactory::startThread(void (*start_func)(void *), void *data)
164164
delete(tInfo);
165165

166166
start_func(data);
167+
#ifdef _WIN32
168+
return(0);
169+
#else
167170
return(nullptr);
171+
#endif
168172
}
169173

170174
#ifdef _WIN32
@@ -193,8 +197,10 @@ bit8 ThreadFactory::startThread(void (*start_func)(void *), void *data)
193197

194198
#ifdef _WIN32
195199
ExitThread(0); // is this really needed?
200+
return(0);
201+
#else
202+
return(nullptr);
196203
#endif
197-
return(nullptr);
198204
}
199205

200206
Runnable::Runnable()

Core/Tools/matchbot/wlib/threadfac.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ bit8 ThreadFactory::startThread(void (*start_func)(void *), void *data)
164164
delete(tInfo);
165165

166166
start_func(data);
167+
#ifdef _WIN32
168+
return(0);
169+
#else
167170
return(nullptr);
171+
#endif
168172
}
169173

170174
#ifdef _WIN32
@@ -193,8 +197,10 @@ bit8 ThreadFactory::startThread(void (*start_func)(void *), void *data)
193197

194198
#ifdef _WIN32
195199
ExitThread(0); // is this really needed?
200+
return(0);
201+
#else
202+
return(nullptr);
196203
#endif
197-
return(nullptr);
198204
}
199205

200206
Runnable::Runnable()

0 commit comments

Comments
 (0)