diff options
Diffstat (limited to 'wirish/Print.cpp')
-rw-r--r-- | wirish/Print.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/wirish/Print.cpp b/wirish/Print.cpp index 5a1bc93..9baa757 100644 --- a/wirish/Print.cpp +++ b/wirish/Print.cpp @@ -32,10 +32,12 @@ void Print::write(const char *str) } /* default implementation: may be overridden */ -void Print::write(const uint8 *buffer, uint32 size) +void Print::write(void *buffer, uint32 size) { - while (size--) - write(*buffer++); + uint8 *ch = (uint8*)buffer; + while (size--) { + write(*ch++); + } } void Print::print(uint8 b) |