Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] dynclasses/matchrange.pmc void with return

2 views
Skip to first unread message

Andy Dougherty

unread,
Nov 18, 2004, 2:35:18 PM11/18/04
to Perl6 Internals
Sun's cc compiler complains about dynclasses/matchrange.pmc:
"matchrange.pmc", line 305: void function cannot return value
The following patch fixes it.

--- parrot-current/dynclasses/matchrange.pmc Fri Sep 17 00:55:02 2004
+++ parrot-andy/dynclasses/matchrange.pmc Mon Nov 15 11:04:04 2004
@@ -302,7 +302,7 @@

void set_integer_keyed (PMC* key, INTVAL value) {
if (key_type(INTERP, key) == KEY_integer_FLAG) {
- return SELF.set_integer_keyed_int(PMC_int_val(key), value);
+ SELF.set_integer_keyed_int(PMC_int_val(key), value);
} else {
STRING* s = VTABLE_get_string(INTERP, key);
DYNSELF.set_integer_keyed_str(s, value);

--
Andy Dougherty doug...@lafayette.edu

0 new messages