1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: deprecate size_t (#11443)

This commit is contained in:
Enzo
2021-09-08 12:09:32 +02:00
committed by GitHub
parent 892971024e
commit e3b65092d6
31 changed files with 160 additions and 152 deletions

View File

@ -8,7 +8,7 @@ module rand
#flag darwin -framework Security
fn C.SecRandomCopyBytes(rnd C.SecRandomRef, count size_t, bytes voidptr) int
fn C.SecRandomCopyBytes(rnd C.SecRandomRef, count usize, bytes voidptr) int
// read returns an array of `bytes_needed` random bytes read from the OS.
pub fn read(bytes_needed int) ?[]byte {

View File

@ -6,7 +6,7 @@ module rand
#include <sys/random.h>
fn C.getrandom(p &byte, n size_t, flags u32) int
fn C.getrandom(p &byte, n usize, flags u32) int
const (
read_batch_size = 256