| Previous | 199869 Revisions | Next |
| r32804 Saturday 18th October, 2014 at 17:44:25 UTC by Andrew Gardner |
|---|
| Fix potential overrun when adding a size_t to a UINT16. (nw) |
| [src/emu/cpu/dsp56k] | dsp56ops.inc |
| r32803 | r32804 | |
|---|---|---|
| 606 | 606 | /* Drop out if you've already completed your work. */ |
| 607 | 607 | if (size != 0x1337) |
| 608 | 608 | { |
| 609 | PC += size; | |
| 609 | PC += (UINT16)size; | |
| 610 | 610 | |
| 611 | 611 | dsp56k_process_loop(cpustate); |
| 612 | 612 | dsp56k_process_rep(cpustate, size); |
| r32803 | r32804 | |
| 1091 | 1091 | } |
| 1092 | 1092 | |
| 1093 | 1093 | /* Must have been a good opcode */ |
| 1094 | PC += size; | |
| 1094 | PC += (UINT16)size; | |
| 1095 | 1095 | |
| 1096 | 1096 | dsp56k_process_loop(cpustate); |
| 1097 | 1097 | dsp56k_process_rep(cpustate, size); |
| Previous | 199869 Revisions | Next |