mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-07 11:00:04 -04:00
Replace "ubyte" with "uint8_t"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user