mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
Compile fix for GCC 4.7.2 in C++11 mode
This commit is contained in:
@ -92,7 +92,7 @@ inline void
|
|||||||
pushLong(Thread* t, uint64_t v)
|
pushLong(Thread* t, uint64_t v)
|
||||||
{
|
{
|
||||||
if (DebugStack) {
|
if (DebugStack) {
|
||||||
fprintf(stderr, "push long %"LLD" at %d\n", v, t->sp);
|
fprintf(stderr, "push long %" LLD " at %d\n", v, t->sp);
|
||||||
}
|
}
|
||||||
|
|
||||||
pushInt(t, v >> 32);
|
pushInt(t, v >> 32);
|
||||||
@ -123,7 +123,7 @@ inline uint32_t
|
|||||||
popInt(Thread* t)
|
popInt(Thread* t)
|
||||||
{
|
{
|
||||||
if (DebugStack) {
|
if (DebugStack) {
|
||||||
fprintf(stderr, "pop int %"ULD" at %d\n",
|
fprintf(stderr, "pop int %" ULD " at %d\n",
|
||||||
t->stack[((t->sp - 1) * 2) + 1],
|
t->stack[((t->sp - 1) * 2) + 1],
|
||||||
t->sp - 1);
|
t->sp - 1);
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ inline uint64_t
|
|||||||
popLong(Thread* t)
|
popLong(Thread* t)
|
||||||
{
|
{
|
||||||
if (DebugStack) {
|
if (DebugStack) {
|
||||||
fprintf(stderr, "pop long %"LLD" at %d\n",
|
fprintf(stderr, "pop long %" LLD " at %d\n",
|
||||||
(static_cast<uint64_t>(t->stack[((t->sp - 2) * 2) + 1]) << 32)
|
(static_cast<uint64_t>(t->stack[((t->sp - 2) * 2) + 1]) << 32)
|
||||||
| static_cast<uint64_t>(t->stack[((t->sp - 1) * 2) + 1]),
|
| static_cast<uint64_t>(t->stack[((t->sp - 1) * 2) + 1]),
|
||||||
t->sp - 2);
|
t->sp - 2);
|
||||||
@ -178,7 +178,7 @@ inline uint32_t
|
|||||||
peekInt(Thread* t, unsigned index)
|
peekInt(Thread* t, unsigned index)
|
||||||
{
|
{
|
||||||
if (DebugStack) {
|
if (DebugStack) {
|
||||||
fprintf(stderr, "peek int %"ULD" at %d\n",
|
fprintf(stderr, "peek int %" ULD " at %d\n",
|
||||||
t->stack[(index * 2) + 1],
|
t->stack[(index * 2) + 1],
|
||||||
index);
|
index);
|
||||||
}
|
}
|
||||||
@ -192,7 +192,7 @@ inline uint64_t
|
|||||||
peekLong(Thread* t, unsigned index)
|
peekLong(Thread* t, unsigned index)
|
||||||
{
|
{
|
||||||
if (DebugStack) {
|
if (DebugStack) {
|
||||||
fprintf(stderr, "peek long %"LLD" at %d\n",
|
fprintf(stderr, "peek long %" LLD " at %d\n",
|
||||||
(static_cast<uint64_t>(t->stack[(index * 2) + 1]) << 32)
|
(static_cast<uint64_t>(t->stack[(index * 2) + 1]) << 32)
|
||||||
| static_cast<uint64_t>(t->stack[((index + 1) * 2) + 1]),
|
| static_cast<uint64_t>(t->stack[((index + 1) * 2) + 1]),
|
||||||
index);
|
index);
|
||||||
@ -228,7 +228,7 @@ inline void
|
|||||||
pokeLong(Thread* t, unsigned index, uint64_t value)
|
pokeLong(Thread* t, unsigned index, uint64_t value)
|
||||||
{
|
{
|
||||||
if (DebugStack) {
|
if (DebugStack) {
|
||||||
fprintf(stderr, "poke long %"LLD" at %d\n", value, index);
|
fprintf(stderr, "poke long %" LLD " at %d\n", value, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
pokeInt(t, index, value >> 32);
|
pokeInt(t, index, value >> 32);
|
||||||
@ -461,7 +461,7 @@ pushResult(Thread* t, unsigned returnCode, uint64_t result, bool indirect)
|
|||||||
case DoubleField:
|
case DoubleField:
|
||||||
case LongField:
|
case LongField:
|
||||||
if (DebugRun) {
|
if (DebugRun) {
|
||||||
fprintf(stderr, "result: %"LLD"\n", result);
|
fprintf(stderr, "result: %" LLD "\n", result);
|
||||||
}
|
}
|
||||||
pushLong(t, result);
|
pushLong(t, result);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user