From 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:18 +0200 Subject: Imported Upstream version 0.5.4 --- ClockMeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ClockMeter.c') diff --git a/ClockMeter.c b/ClockMeter.c index 645910c..9469a35 100644 --- a/ClockMeter.c +++ b/ClockMeter.c @@ -30,7 +30,7 @@ struct ClockMeter_ { ClockMeter* ClockMeter_new() { ClockMeter* this = malloc(sizeof(ClockMeter)); Meter_init((Meter*)this, String_copy("Clock"), String_copy("Time: "), 1); - ((Meter*)this)->attributes[0] = CRT_colors[CLOCK]; + ((Meter*)this)->attributes[0] = &(CRT_colors[CLOCK]); ((Meter*)this)->setValues = ClockMeter_setValues; ((Object*)this)->display = ClockMeter_display; ((Meter*)this)->total = 24 * 60; @@ -50,5 +50,5 @@ void ClockMeter_setValues(Meter* cast) { void ClockMeter_display(Object* cast, RichString* out) { Meter* super = (Meter*) cast; ClockMeter* this = (ClockMeter*) cast; - RichString_write(out, super->attributes[0], this->clock); + RichString_write(out, *(super->attributes[0]), this->clock); } -- cgit v1.2.3