Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
API consistency.
  • Loading branch information
jnthn committed Mar 9, 2013
1 parent 5c9264f commit ffbaa3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/perl6/nqp/sixmodel/REPR.java
Expand Up @@ -78,7 +78,7 @@ public void change_type(ThreadContext tc, SixModelObject Object, SixModelObject
/**
* Object serialization. Writes the objects body out using the passed
* serialization writer. */
public void serialize(ThreadContext tc, SixModelObject obj, SerializationWriter writer) {
public void serialize(ThreadContext tc, SerializationWriter writer, SixModelObject obj) {
throw ExceptionHandling.dieInternal(tc, "Missing serialize function for REPR");
}

Expand Down
2 changes: 1 addition & 1 deletion src/org/perl6/nqp/sixmodel/SerializationWriter.java
Expand Up @@ -436,7 +436,7 @@ private void serializeObject(SixModelObject obj) {

/* Delegate to its serialization REPR function. */
if (!(obj instanceof TypeObject))
obj.st.REPR.serialize(tc, obj, this);
obj.st.REPR.serialize(tc, this, obj);
}

private void serializeStable(STable sTable) {
Expand Down

0 comments on commit ffbaa3b

Please sign in to comment.