Skip to content

Commit

Permalink
[cage] c++ required cast and returnning a value in void function
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@41478 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
NotFound authored and NotFound committed Sep 25, 2009
1 parent 1dee7d7 commit 506791e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gc/mark_sweep.c
Expand Up @@ -193,7 +193,7 @@ Parrot_gc_trace_root(PARROT_INTERP, Parrot_gc_trace_type trace)
/* mark the current continuation */
obj = (PObj *)interp->current_cont;
if (obj && obj != (PObj *)NEED_CONTINUATION)
Parrot_gc_mark_PMC_alive(interp, obj);
Parrot_gc_mark_PMC_alive(interp, (PMC *)obj);

/* mark the current context. */
Parrot_gc_mark_PMC_alive(interp, CURRENT_CONTEXT(interp));
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/class.pmc
Expand Up @@ -423,7 +423,7 @@ calculate_mro(PARROT_INTERP, PMC *SELF, INTVAL num_parents)

/* SELF is already on the all_parents */
if (num_parents == 0)
return _class->all_parents;
return;

if (num_parents == 1) {
STRING * const ap = CONST_STRING(interp, "all_parents");
Expand Down

0 comments on commit 506791e

Please sign in to comment.