mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Fix the MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a89cfd23c4
commit
79abc9dd4a
@ -160,7 +160,11 @@ size_t LLVMDisasmInstruction(LLVMDisasmContextRef DCR, uint8_t *Bytes,
|
|||||||
|
|
||||||
std::string p;
|
std::string p;
|
||||||
p = OS.str();
|
p = OS.str();
|
||||||
|
#ifdef LLVM_ON_WIN32
|
||||||
|
sprintf(OutString, "%s", p.c_str());
|
||||||
|
#else
|
||||||
snprintf(OutString, OutStringSize, "%s", p.c_str());
|
snprintf(OutString, OutStringSize, "%s", p.c_str());
|
||||||
|
#endif
|
||||||
return Size;
|
return Size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user