From 54b9cde7363fa33091166e4d3b47109a30cc8f81 Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Sun, 23 Oct 2011 17:44:26 +0200 Subject: compile fix --- dish.c | 4 ++-- dish.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dish.c b/dish.c index f740e78..83c71dd 100644 --- a/dish.c +++ b/dish.c @@ -368,7 +368,7 @@ namespace SI return critiques[starRating & 0x07]; } - const char *DishDescriptor::Decompress(unsigned char Tid, CharArray data) + unsigned char* DishDescriptor::Decompress(unsigned char Tid, CharArray data) { const unsigned char *str = data.getData(); const unsigned char *cmp = NULL; @@ -386,7 +386,7 @@ namespace SI if(length <= 0 || !dLength) return NULL; - char *decompressed = new unsigned char[dLength + 1]; + unsigned char* decompressed = new unsigned char[dLength + 1]; HuffmanTable *table; unsigned int tableSize, numBits; if (Tid > 0x80) { diff --git a/dish.h b/dish.h index 04a8d90..c9fcfe1 100644 --- a/dish.h +++ b/dish.h @@ -11,6 +11,7 @@ #define LIBSI_DISH_H #include +#include namespace SI { @@ -265,7 +266,7 @@ public: protected: // Decompress the byte array and stores the result to a text string - const char *Decompress(unsigned char Tid, CharArray data); + unsigned char* Decompress(unsigned char Tid, CharArray data); const char* name; // name of the event const char* shortText; // usually the episode name const char* description; // description of the event -- cgit v1.2.3