[macruby-changes] [4544] MacRuby/trunk/vm_method.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 27 15:55:32 PDT 2010
Revision: 4544
http://trac.macosforge.org/projects/ruby/changeset/4544
Author: lsansonetti at apple.com
Date: 2010-09-27 15:55:31 -0700 (Mon, 27 Sep 2010)
Log Message:
-----------
fix a bug when changing a method's visibility to public would not be taken into account
Modified Paths:
--------------
MacRuby/trunk/vm_method.c
Modified: MacRuby/trunk/vm_method.c
===================================================================
--- MacRuby/trunk/vm_method.c 2010-09-27 21:28:06 UTC (rev 4543)
+++ MacRuby/trunk/vm_method.c 2010-09-27 22:55:31 UTC (rev 4544)
@@ -90,7 +90,7 @@
sel_getName(sel));
}
- long flags = 0;
+ long flags = (node->flags & ~VM_METHOD_PRIVATE) & ~VM_METHOD_PROTECTED;
switch (noex) {
case NOEX_PRIVATE:
flags |= VM_METHOD_PRIVATE;
@@ -125,7 +125,7 @@
}
}
- node->flags |= flags;
+ node->flags = flags;
}
void
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100927/43af608d/attachment.html>
More information about the macruby-changes
mailing list