cppchecker shadow var

This commit is contained in:
iceman1001 2020-03-13 13:51:54 +01:00
parent 656f35036d
commit 6f1ed5a9bf

View file

@ -143,16 +143,16 @@ void writetable(struct table *t1) {
// store value in table // store value in table
void store(unsigned char *data) { void store(unsigned char *data) {
unsigned char d1, d2; unsigned char d_1, d_2;
int offset; int offset;
struct table *t1; struct table *t1;
// use the first two bytes as an index // use the first two bytes as an index
d1 = data[0]; d_1 = data[0];
d2 = data[1]; d_2 = data[1];
offset = (d1 * 0x100) + d2; offset = (d_1 * 0x100) + d_2;
if (debug) printf("store, d1=%02X, d2=%02X, offset = %d\n", d1, d2, offset); if (debug) printf("store, d1=%02X, d2=%02X, offset = %d\n", d_1, d_2, offset);
// get pointer to table entry // get pointer to table entry
t1 = t + offset; t1 = t + offset;