Skip to content

Commit f7bbbb6

Browse files
authored
fix implicit conversion of fixed array -> pointer (vlang#309)
1 parent ed4e1d8 commit f7bbbb6

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

pngs.v

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module ui
55
// Please, do not edit this file.
66
// Your changes may be overwritten.
77
const (
8-
bytes_check_png_len = 3811
98
bytes_check_png = [byte(137), 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
109
72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 4, 103,
1110
65, 77, 65, 0, 0, 177, 142, 124, 251, 81, 147, 0, 0, 0, 32, 99, 72, 82, 77, 0, 0, 135,
@@ -201,7 +200,6 @@ const (
201200
132, 66, 33, 58, 161, 63, 97, 21, 94, 81, 85, 213, 184, 109, 172, 145, 203, 229, 140, 91,
202201
37, 238, 190, 195, 48, 190, 1, 231, 96, 208, 15, 105, 22, 68, 122, 0, 0, 0, 0, 73, 69,
203202
78, 68, 174, 66, 96, 130]!
204-
bytes_circle_png_len = 818
205203
bytes_circle_png = [byte(137), 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
206204
72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 6, 98,
207205
75, 71, 68, 0, 0, 0, 0, 0, 0, 249, 67, 187, 127, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14,
@@ -244,7 +242,6 @@ const (
244242
62, 203, 180, 0, 80, 138, 127, 233, 220, 241, 222, 119, 173, 181, 93, 231, 220, 23, 58,
245243
43, 165, 254, 87, 231, 63, 1, 43, 35, 163, 127, 2, 249, 125, 174, 0, 0, 0, 0, 73, 69, 78,
246244
68, 174, 66, 96, 130]!
247-
bytes_selected_radio_linux_png_len = 946
248245
bytes_selected_radio_linux_png = [byte(137), 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
249246
72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 6, 0, 0, 0, 31, 243, 255, 97, 0, 0, 0, 6, 98,
250247
75, 71, 68, 0, 255, 0, 255, 0, 255, 160, 189, 167, 147, 0, 0, 0, 9, 112, 72, 89, 115, 0,
@@ -294,7 +291,6 @@ const (
294291
8, 64, 200, 254, 211, 185, 164, 181, 174, 36, 73, 82, 201, 243, 252, 165, 206, 150, 101,
295292
253, 111, 231, 127, 0, 37, 201, 192, 194, 193, 83, 41, 228, 0, 0, 0, 0, 73, 69, 78, 68,
296293
174, 66, 96, 130]!
297-
bytes_darwin_circle_png_len = 3558
298294
bytes_darwin_circle_png = [byte(137), 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
299295
72, 68, 82, 0, 0, 0, 12, 0, 0, 0, 12, 8, 6, 0, 0, 0, 86, 117, 92, 231, 0, 0, 10, 171, 105,
300296
67, 67, 80, 73, 67, 67, 32, 80, 114, 111, 102, 105, 108, 101, 0, 0, 72, 137, 149, 150,
@@ -478,7 +474,6 @@ const (
478474
123, 126, 86, 214, 194, 182, 237, 239, 14, 113, 28, 163, 105, 26, 120, 158, 167, 73, 18,
479475
112, 103, 22, 148, 187, 179, 41, 225, 36, 121, 253, 26, 124, 231, 44, 203, 254, 190, 198,
480476
7, 214, 237, 83, 207, 108, 11, 4, 150, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130]!
481-
bytes_selected_radio_png_len = 4411
482477
bytes_selected_radio_png = [byte(137), 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
483478
72, 68, 82, 0, 0, 0, 32, 0, 0, 0, 32, 8, 6, 0, 0, 0, 115, 122, 122, 244, 0, 0, 10, 171,
484479
105, 67, 67, 80, 73, 67, 67, 32, 80, 114, 111, 102, 105, 108, 101, 0, 0, 72, 137, 149,
@@ -706,7 +701,6 @@ const (
706701
225, 236, 91, 190, 183, 108, 55, 127, 209, 123, 65, 2, 54, 128, 233, 176, 223, 114, 218,
707702
40, 132, 212, 24, 170, 16, 33, 181, 29, 114, 84, 87, 218, 105, 236, 27, 141, 198, 164,
708703
204, 130, 59, 242, 161, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130]!
709-
bytes_arrow_png_len = 163
710704
bytes_arrow_png = [byte(137), 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
711705
72, 68, 82, 0, 0, 0, 48, 0, 0, 0, 48, 8, 6, 0, 0, 0, 87, 2, 249, 135, 0, 0, 0, 6, 98, 75,
712706
71, 68, 0, 255, 0, 255, 0, 255, 160, 189, 167, 147, 0, 0, 0, 88, 73, 68, 65, 84, 104, 129,
@@ -715,4 +709,5 @@ const (
715709
27, 113, 87, 243, 226, 230, 19, 171, 56, 62, 172, 226, 248, 176, 138, 227, 195, 42, 142,
716710
15, 171, 56, 62, 172, 226, 248, 176, 138, 227, 99, 244, 227, 73, 1, 0, 0, 0, 0, 190, 180,
717711
3, 241, 255, 99, 199, 80, 201, 152, 44, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130]!
712+
dummy_name_for_vfmt_align_________ = 0
718713
)

ui.v

+7-6
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,16 @@ pub fn run(window &Window) {
212212
}
213213

214214
fn (mut gui UI) load_icos() {
215-
gui.cb_image = gui.gg.create_image_from_memory(bytes_check_png, bytes_check_png_len)
215+
gui.cb_image = gui.gg.create_image_from_memory(&bytes_check_png[0], bytes_check_png.len)
216216
$if macos {
217-
gui.circle_image = gui.gg.create_image_from_memory(bytes_darwin_circle_png, bytes_darwin_circle_png_len)
217+
gui.circle_image = gui.gg.create_image_from_memory(&bytes_darwin_circle_png[0],
218+
bytes_darwin_circle_png.len)
218219
} $else {
219-
gui.circle_image = gui.gg.create_image_from_memory(bytes_circle_png, bytes_circle_png_len)
220+
gui.circle_image = gui.gg.create_image_from_memory(&bytes_circle_png[0], bytes_circle_png.len)
220221
}
221-
gui.down_arrow = gui.gg.create_image_from_memory(bytes_arrow_png, bytes_arrow_png_len)
222-
gui.selected_radio_image = gui.gg.create_image_from_memory(bytes_selected_radio_png,
223-
bytes_selected_radio_png_len)
222+
gui.down_arrow = gui.gg.create_image_from_memory(&bytes_arrow_png[0], bytes_arrow_png.len)
223+
gui.selected_radio_image = gui.gg.create_image_from_memory(&bytes_selected_radio_png[0],
224+
bytes_selected_radio_png.len)
224225
}
225226

226227
pub fn open_url(url string) {

0 commit comments

Comments
 (0)