Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created August 1, 2012 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbussink/9fe02bd47515cbbcced7 to your computer and use it in GitHub Desktop.
Save dbussink/9fe02bd47515cbbcced7 to your computer and use it in GitHub Desktop.
diff --git i/gc.c w/gc.c
index e65d0ec..f0fdd71 100644
--- i/gc.c
+++ w/gc.c
@@ -616,7 +616,7 @@ static VALUE
gc_profile_enable_get(VALUE self)
{
rb_objspace_t *objspace = &rb_objspace;
- return objspace->profile.run;
+ return objspace->profile.run ? Qtrue : Qfalse;
}
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment