Replace "ubyte" with "uint8_t"

This commit is contained in:
GravisZro
2024-05-23 23:07:26 -04:00
parent 9d3e361a35
commit 26b7776f43
394 changed files with 2888 additions and 2888 deletions

View File

@@ -220,7 +220,7 @@ tVirtualFile *CZip::VFopen(const char *filename, const char *flags, int size) {
f->count = 0;
f->size = size;
f->file_size = 0;
f->memory = (ubyte *)malloc(size);
f->memory = (uint8_t *)malloc(size);
if (!f->memory) {
free(f);
return NULL;
@@ -302,7 +302,7 @@ int CZip::VFgetc(tVirtualFile *file) {
}
int CZip::VFwrite(void *buf, int size, int count, tVirtualFile *file) {
ubyte *buffer = (ubyte *)buf;
uint8_t *buffer = (uint8_t *)buf;
if (file->type) {
// memory
int c = std::min(count, (file->size - file->count) / size);
@@ -321,7 +321,7 @@ int CZip::VFwrite(void *buf, int size, int count, tVirtualFile *file) {
}
int CZip::VFread(void *buf, int size, int count, tVirtualFile *file) {
ubyte *buffer = (ubyte *)buf;
uint8_t *buffer = (uint8_t *)buf;
if (file->type) {
// memory
int c = std::min(count, (file->size - file->count) / size);