summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/hal/serial_com.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/hal/serial_com.c')
-rw-r--r--arch/x86_64/hal/serial_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/hal/serial_com.c b/arch/x86_64/hal/serial_com.c
index 22682fd..5d7de24 100644
--- a/arch/x86_64/hal/serial_com.c
+++ b/arch/x86_64/hal/serial_com.c
@@ -82,11 +82,11 @@ serial_com_write(
jove_owned_obj_t *obj,
const char *s, size_t len)
{
- if(obj->type != JOVE_OBJ_SERIAL_COM) {
+ if(obj_gettype(obj) != JOVE_OBJ_SERIAL_COM) {
reterr(EBADOBJ);
}
for(size_t i = 0; i < len; i++) {
- serial_com_putc((uint16_t)obj->value, s[i]);
+ serial_com_putc((uint16_t)obj_getvalue(obj), s[i]);
}
return len;
}