Skip to content

Commit

Permalink
Remove nonsense assignment to name
Browse files Browse the repository at this point in the history
This was treating Qnil as a char to assign it...

Co-authored-by: Matthew Draper <[email protected]>
  • Loading branch information
jhawthorn and matthewd committed Feb 28, 2024
1 parent 8edc600 commit 26124bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/vernier/vernier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ class Thread {

// FIXME: don't use pthread at start
Thread(State state, pthread_t pthread_id, VALUE ruby_thread) : pthread_id(pthread_id), ruby_thread(ruby_thread), state(state), stack_on_suspend_idx(-1) {
name = Qnil;
ruby_thread_id = rb_obj_id(ruby_thread);
//ruby_thread_id = ULL2NUM(ruby_thread);
native_tid = get_native_thread_id();
Expand Down

0 comments on commit 26124bf

Please sign in to comment.