diff --git a/apu/resampler.h b/apu/resampler.h index a9173450..a19ed6f9 100644 --- a/apu/resampler.h +++ b/apu/resampler.h @@ -16,6 +16,10 @@ #endif #include +#ifdef __CELLOS_LV2__ +using namespace std; +#endif + class Resampler { public: diff --git a/c4emu.cpp b/c4emu.cpp index 708acabd..3bb2ccda 100644 --- a/c4emu.cpp +++ b/c4emu.cpp @@ -1022,7 +1022,7 @@ void S9xSetC4 (uint8 byte, uint16 Address) printf("$7f4d=%02x, expected 0e for command 54 %02x\n", Memory.C4RAM[0x1f4d], Memory.C4RAM[0x1f4d]); #endif int64 a = (int64)READ_3WORD(Memory.C4RAM + 0x1f80); - a |= 0xffffffffff000000 * ((a >> 23) & 1); + a |= 0xffffffffff000000LL * ((a >> 23) & 1); //printf("%08X%08X\n", (uint32) (a>>32), (uint32) (a&0xFFFFFFFF)); a *= a; //printf("%08X%08X\n", (uint32) (a>>32), (uint32) (a&0xFFFFFFFF));