File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ pub fn vcalloc(n int) &byte {
445
445
$if prealloc {
446
446
return unsafe { prealloc_calloc (n) }
447
447
} $else $if gcboehm ? {
448
- return unsafe { & byte (C.GC_MALLOC (n)) }
448
+ return unsafe { & u8 (C.GC_MALLOC (n)) }
449
449
} $else {
450
450
return unsafe { C.calloc (1 , n) }
451
451
}
@@ -470,9 +470,9 @@ pub fn vcalloc_noscan(n int) &byte {
470
470
panic ('calloc_noscan($n < 0)' )
471
471
}
472
472
return $if gcboehm_opt ? {
473
- unsafe { & byte (C.memset (C.GC_MALLOC_ATOMIC (n), 0 , n)) }
473
+ unsafe { & u8 (C.memset (C.GC_MALLOC_ATOMIC (n), 0 , n)) }
474
474
} $else {
475
- unsafe { & byte (C.GC_MALLOC (n)) }
475
+ unsafe { & u8 (C.GC_MALLOC (n)) }
476
476
}
477
477
} $else {
478
478
return unsafe { vcalloc (n) }
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
87
87
// ////csymbols := backtrace_symbols(*voidptr(&buffer[skipframes]), nr_actual_frames)
88
88
csymbols := C.backtrace_symbols (voidptr (& buffer[skipframes]), nr_actual_frames)
89
89
for i in 0 .. nr_actual_frames {
90
- sframes << unsafe { tos2 (& byte (csymbols[i])) }
90
+ sframes << unsafe { tos2 (& u8 (csymbols[i])) }
91
91
}
92
92
for sframe in sframes {
93
93
executable := sframe.all_before ('(' )
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ fn print_backtrace_skipping_top_frames_msvc(skipframes int) bool {
126
126
si.f_max_name_len = sizeof (SymbolInfoContainer) - sizeof (SymbolInfo) - 1
127
127
fname := & char (& si.f_name)
128
128
mut sline64 := Line64 {
129
- f_file_name: & byte (0 )
129
+ f_file_name: & u8 (0 )
130
130
}
131
131
sline64 .f_size_of_struct = sizeof (Line64 )
132
132
You can’t perform that action at this time.
0 commit comments