Skip to content

Commit e97ebf8

Browse files
committed
sokol: byte => u8
1 parent 258d1f7 commit e97ebf8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

vlib/sokol/sapp/sapp.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub fn frame_duration() f64 {
163163

164164
// write string into clipboard
165165
[inline]
166-
pub fn set_clipboard_string(str &char) {
166+
pub fn set_clipboard_string(str &u8) {
167167
C.sapp_set_clipboard_string(str)
168168
}
169169

vlib/sokol/sapp/sapp_funcs.c.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ fn C.sapp_frame_count() u64
7575
fn C.sapp_frame_duration() f64
7676

7777
// write string into clipboard
78-
fn C.sapp_set_clipboard_string(str &byte)
78+
fn C.sapp_set_clipboard_string(str &u8)
7979

8080
// read string from clipboard (usually during SAPP_EVENTTYPE_CLIPBOARD_PASTED)
81-
fn C.sapp_get_clipboard_string() &byte
81+
fn C.sapp_get_clipboard_string() &u8
8282

8383
// set the window title (only on desktop platforms)
8484
fn C.sapp_set_window_title(&char)
@@ -90,7 +90,7 @@ fn C.sapp_set_window_title(&char)
9090
fn C.sapp_get_num_dropped_files() int
9191

9292
// Get the file path of the droped file
93-
fn C.sapp_get_dropped_file_path(int) &byte
93+
fn C.sapp_get_dropped_file_path(int) &u8
9494

9595
// special run-function for SOKOL_NO_ENTRY (in standard mode this is an empty stub)
9696
fn C.sapp_run(desc &Desc) int

vlib/sqlite/orm.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fn sqlite_stmt_binder(stmt Stmt, d orm.QueryData, query string, mut c &int) ? {
106106
fn bind(stmt Stmt, c &int, data orm.Primitive) int {
107107
mut err := 0
108108
match data {
109-
i8, i16, int, byte, u16, u32, bool {
109+
i8, i16, int, u8, u16, u32, bool {
110110
err = stmt.bind_int(c, int(data))
111111
}
112112
i64, u64 {

0 commit comments

Comments
 (0)