mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix printf warnings in compiler.cpp
This commit is contained in:
parent
d99f8df6e6
commit
b4dea1f71c
@ -384,13 +384,15 @@ unsigned
|
||||
RegisterResource::toString(Context* c, char* buffer, unsigned bufferSize)
|
||||
{
|
||||
return snprintf
|
||||
(buffer, bufferSize, "register %d", this - c->registerResources);
|
||||
(buffer, bufferSize, "register %d", static_cast<int>
|
||||
(this - c->registerResources));
|
||||
}
|
||||
|
||||
unsigned
|
||||
FrameResource::toString(Context* c, char* buffer, unsigned bufferSize)
|
||||
{
|
||||
return snprintf(buffer, bufferSize, "frame %d", this - c->frameResources);
|
||||
return snprintf(buffer, bufferSize, "frame %d", static_cast<int>
|
||||
(this - c->frameResources));
|
||||
}
|
||||
|
||||
class PoolPromise: public Promise {
|
||||
|
Loading…
Reference in New Issue
Block a user