Skip to content

Commit

Permalink
Adds cast for safety.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alliballibaba2 committed Nov 5, 2024
1 parent cd98e33 commit 4e2a2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_threads.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func initPHPThreads(numThreads int) error {
shutdownWG.Add(len(phpThreads))
for _, thread := range phpThreads {
thread.setInactive()
if !C.frankenphp_new_php_thread(C.uintptr_t(thread.threadIndex)) {
if !bool(C.frankenphp_new_php_thread(C.uintptr_t(thread.threadIndex))) {
panic(fmt.Sprintf("unable to create thread %d", thread.threadIndex))
}
}
Expand Down

0 comments on commit 4e2a2c6

Please sign in to comment.