summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/newt/newt.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/newt/newt.c')
-rw-r--r--mdk-stage1/newt/newt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/newt/newt.c b/mdk-stage1/newt/newt.c
index d6cb3cd96..a41b7900b 100644
--- a/mdk-stage1/newt/newt.c
+++ b/mdk-stage1/newt/newt.c
@@ -397,7 +397,7 @@ int newtOpenWindow(int left, int top, int width, int height,
n = 0;
for (j = 0; j < height + 3; j++, row++) {
SLsmg_gotorc(row, col);
- SLsmg_read_raw(currentWindow->buffer + n,
+ SLsmg_read_raw((SLsmg_Char_Type *)currentWindow->buffer + n,
currentWindow->width + 3);
n += currentWindow->width + 3;
}
@@ -462,7 +462,7 @@ void newtPopWindow(void) {
col = currentWindow->left - 1;
for (j = 0; j < currentWindow->height + 3; j++, row++) {
SLsmg_gotorc(row, col);
- SLsmg_write_raw(currentWindow->buffer + n,
+ SLsmg_write_raw((SLsmg_Char_Type *)currentWindow->buffer + n,
currentWindow->width + 3);
n += currentWindow->width + 3;
}