Permalink
Browse files

fix get_string() in EclectusCharacter

  • Loading branch information...
1 parent 79b14fd commit 98f707585954c7c0ff5d4e6ecf2d63a9570ae9d5 @bschmalhofer committed Mar 23, 2009
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/pmc/eclectuscharacter.pmc
@@ -20,16 +20,16 @@ character behavior. Derived from the Amber_CHARACTER PMC.
pmclass EclectusCharacter
extends Integer
- does Integer
+ does Integer
dynpmc
- group eclectus_group
- hll Eclectus
- maps Integer {
+ group eclectus_group
+ hll Eclectus
+ maps Integer {
VTABLE STRING* get_string() {
- return string_append(INTERP,
- CONST_STRING(INTERP, "#\\"),
- string_chr(INTERP, PMC_int_val(SELF)));
+ return Parrot_str_append(INTERP,
+ CONST_STRING(INTERP, "#\\"),
+ string_chr(INTERP, SELF.get_integer()));
}
}

0 comments on commit 98f7075

Please sign in to comment.