From 1ab6326301ad9f902bb33d149371c54c31e1fa0f Mon Sep 17 00:00:00 2001 From: Pedro de Medeiros Date: Fri, 5 May 2023 13:50:03 -0300 Subject: source pointer should be constant --- include/ubox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ubox.h') diff --git a/include/ubox.h b/include/ubox.h index ea3ebe0..b66c76e 100644 --- a/include/ubox.h +++ b/include/ubox.h @@ -107,13 +107,13 @@ void ubox_set_colors(uint8_t fg, uint8_t bg, uint8_t border); * ubox_write_vm((uint8_t*)0x1b00, 4 * 4, buffer); * ``` */ -void ubox_write_vm(uint8_t *dst, uint16_t len, uint8_t *src); +void ubox_write_vm(uint8_t *dst, uint16_t len, const uint8_t *src); /** * Reads a block of `len` bytes from `src` in VMEM (video memory) to `dst` * in memory. */ -void ubox_read_vm(uint8_t *dst, uint16_t len, uint8_t *src); +void ubox_read_vm(uint8_t *dst, uint16_t len, const uint8_t *src); /** * Writes `data` to the `reg` VDP register. -- cgit v1.2.3