diff options
author | Edward Hervey <bilboed@bilboed.com> | 2015-03-08 07:51:34 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-03-08 07:52:40 +0100 |
commit | c2beab87aacb6cdb3f27d0a64b526c78b2507d09 (patch) | |
tree | e79730acb50b38864e0e13c1d690c9fc29a546da | |
parent | d3aed53240751bc3aae961b6f89b443f602fff64 (diff) | |
download | orc-c2beab87aacb6cdb3f27d0a64b526c78b2507d09.tar.gz |
orcc: Remove duplicate codepath
The code is identical regardless of the variable value
CID #1226451
https://bugzilla.gnome.org/show_bug.cgi?id=745830
-rw-r--r-- | tools/orcc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/orcc.c b/tools/orcc.c index e29adb1..5bac289 100644 --- a/tools/orcc.c +++ b/tools/orcc.c @@ -1320,13 +1320,8 @@ output_code_test (OrcProgram *p, FILE *output) var = &p->vars[ORC_VAR_C1 + i]; if (var->size) { if (var->size < 8) { - if (var->value.i != 0x80000000) { - fprintf(output, " orc_program_add_constant (p, %d, 0x%08x, \"%s\");\n", - var->size, (int)var->value.i, varnames[ORC_VAR_C1 + i]); - } else { - fprintf(output, " orc_program_add_constant (p, %d, 0x%08x, \"%s\");\n", - var->size, (int)var->value.i, varnames[ORC_VAR_C1 + i]); - } + fprintf(output, " orc_program_add_constant (p, %d, 0x%08x, \"%s\");\n", + var->size, (int)var->value.i, varnames[ORC_VAR_C1 + i]); } else { fprintf(output, " orc_program_add_constant_int64 (p, %d, " "0x%08x%08xULL, \"%s\");\n", |