mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Make this work on systems where size_t is not the same as unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea622d53e2
commit
445cdd3aad
@ -36,6 +36,14 @@ static int getdata(char*& buffer, size_t &size,
|
||||
return result;
|
||||
}
|
||||
|
||||
static int getdata(char*& buffer, unsigned &size,
|
||||
llvm::Compressor::OutputDataCallback* cb, void* context) {
|
||||
size_t SizeOut;
|
||||
int Res = getdata(buffer, SizeOut, cb, context);
|
||||
size = SizeOut;
|
||||
return Res;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//=== NULLCOMP - a compression like set of routines that just copies data
|
||||
//=== without doing any compression. This is provided so that if the
|
||||
|
Loading…
x
Reference in New Issue
Block a user