From e97ebf8cfc3e0b8d45cccf90e3363f0c6ef7a8b2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 15 Apr 2022 16:12:05 +0300 Subject: [PATCH] sokol: byte => u8 --- vlib/sokol/sapp/sapp.c.v | 2 +- vlib/sokol/sapp/sapp_funcs.c.v | 6 +++--- vlib/sqlite/orm.v | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/sokol/sapp/sapp.c.v b/vlib/sokol/sapp/sapp.c.v index 5302181abf..b8b9400352 100644 --- a/vlib/sokol/sapp/sapp.c.v +++ b/vlib/sokol/sapp/sapp.c.v @@ -163,7 +163,7 @@ pub fn frame_duration() f64 { // write string into clipboard [inline] -pub fn set_clipboard_string(str &char) { +pub fn set_clipboard_string(str &u8) { C.sapp_set_clipboard_string(str) } diff --git a/vlib/sokol/sapp/sapp_funcs.c.v b/vlib/sokol/sapp/sapp_funcs.c.v index ec541629dc..ab6024d308 100644 --- a/vlib/sokol/sapp/sapp_funcs.c.v +++ b/vlib/sokol/sapp/sapp_funcs.c.v @@ -75,10 +75,10 @@ fn C.sapp_frame_count() u64 fn C.sapp_frame_duration() f64 // write string into clipboard -fn C.sapp_set_clipboard_string(str &byte) +fn C.sapp_set_clipboard_string(str &u8) // read string from clipboard (usually during SAPP_EVENTTYPE_CLIPBOARD_PASTED) -fn C.sapp_get_clipboard_string() &byte +fn C.sapp_get_clipboard_string() &u8 // set the window title (only on desktop platforms) fn C.sapp_set_window_title(&char) @@ -90,7 +90,7 @@ fn C.sapp_set_window_title(&char) fn C.sapp_get_num_dropped_files() int // Get the file path of the droped file -fn C.sapp_get_dropped_file_path(int) &byte +fn C.sapp_get_dropped_file_path(int) &u8 // special run-function for SOKOL_NO_ENTRY (in standard mode this is an empty stub) fn C.sapp_run(desc &Desc) int diff --git a/vlib/sqlite/orm.v b/vlib/sqlite/orm.v index f2e9310bed..c56b52f84d 100644 --- a/vlib/sqlite/orm.v +++ b/vlib/sqlite/orm.v @@ -106,7 +106,7 @@ fn sqlite_stmt_binder(stmt Stmt, d orm.QueryData, query string, mut c &int) ? { fn bind(stmt Stmt, c &int, data orm.Primitive) int { mut err := 0 match data { - i8, i16, int, byte, u16, u32, bool { + i8, i16, int, u8, u16, u32, bool { err = stmt.bind_int(c, int(data)) } i64, u64 {