Skip to content

Commit

Permalink
sokol: byte => u8
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Apr 15, 2022
1 parent 258d1f7 commit e97ebf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vlib/sokol/sapp/sapp.c.v
Expand Up @@ -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)
}

Expand Down
6 changes: 3 additions & 3 deletions vlib/sokol/sapp/sapp_funcs.c.v
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vlib/sqlite/orm.v
Expand Up @@ -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 {
Expand Down

0 comments on commit e97ebf8

Please sign in to comment.