Mercurial > hg > index.cgi
comparison lwasm/insn_indexed.c @ 2:7317fbe024af
Clean up insane number of compiler warnings under -Wall
author | lost@l-w.ca |
---|---|
date | Thu, 20 Jan 2011 22:39:46 -0700 |
parents | 2c24602be78f |
children | c42d6dc7df68 |
comparison
equal
deleted
inserted
replaced
1:96c4dc89016e | 2:7317fbe024af |
---|---|
312 | 312 |
313 void insn_resolve_indexed_aux(asmstate_t *as, line_t *l, int force, int elen) | 313 void insn_resolve_indexed_aux(asmstate_t *as, line_t *l, int force, int elen) |
314 { | 314 { |
315 // here, we have an expression which needs to be | 315 // here, we have an expression which needs to be |
316 // resolved; the post byte is determined here as well | 316 // resolved; the post byte is determined here as well |
317 lw_expr_t e, e2, e3; | 317 lw_expr_t e, e2; |
318 int pb = -1; | 318 int pb = -1; |
319 int v; | 319 int v; |
320 | 320 |
321 if (l -> len != -1) | 321 if (l -> len != -1) |
322 return; | 322 return; |
412 { | 412 { |
413 pb = (l -> pb & 0x03) << 5 | 0x84; | 413 pb = (l -> pb & 0x03) << 5 | 0x84; |
414 } | 414 } |
415 else | 415 else |
416 { | 416 { |
417 pb = (l -> pb & 0x03) << 5 | v & 0x1F; | 417 pb = (l -> pb & 0x03) << 5 | (v & 0x1F); |
418 } | 418 } |
419 l -> pb = pb; | 419 l -> pb = pb; |
420 return; | 420 return; |
421 } | 421 } |
422 } | 422 } |
497 { | 497 { |
498 pb = (l -> pb & 0x03) << 5 | 0x84; | 498 pb = (l -> pb & 0x03) << 5 | 0x84; |
499 } | 499 } |
500 else | 500 else |
501 { | 501 { |
502 pb = (l -> pb & 0x03) << 5 | v & 0x1F; | 502 pb = (l -> pb & 0x03) << 5 | (v & 0x1F); |
503 } | 503 } |
504 l -> pb = pb; | 504 l -> pb = pb; |
505 return; | 505 return; |
506 } | 506 } |
507 } | 507 } |