Skip to content

Commit fa53359

Browse files
author
Disa Mhembere
committed
mac: refix of closed #49
1 parent f00af42 commit fa53359

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

exec/knori.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int main(int argc, char* argv[])
153153
unsigned* p_clust_asgns = new unsigned [nrow];
154154
size_t* p_clust_asgn_cnt = new size_t [k];
155155

156-
if (NULL == p_centers) We have no preallocated centers
156+
if (NULL == p_centers) // We have no preallocated centers
157157
p_centers = new double [k*ncol];
158158

159159
if (no_prune) {

libman/kmeans_thread.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ void kmeans_thread::wait() {
9999
if (rc) perror("pthread_cond_wait");
100100
}
101101

102-
rc = pthread_mutex_unlock(&mutex);
103-
if (rc) perror("pthread_mutex_unlock");
102+
pthread_mutex_unlock(&mutex);
104103
}
105104

106105
void kmeans_thread::wake(thread_state_t state) {

0 commit comments

Comments
 (0)