Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed Oct 17, 2023
1 parent dbaaf16 commit 50940f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cobc/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -12602,7 +12602,8 @@ output_internal_function (struct cb_program *prog, cb_tree parameter_list)

seen = 0;
for (m = literal_cache; m; m = m->next) {
if (m->make_decimal) {
if (CB_TREE_CLASS (m->x) == CB_CLASS_NUMERIC
&& m->make_decimal) {
if (!seen) {
seen = 1;
output_line ("/* Set Decimal Constant values */");
Expand Down Expand Up @@ -12809,7 +12810,8 @@ output_internal_function (struct cb_program *prog, cb_tree parameter_list)
output_line ("P_clear_decimal:");
seen = 0;
for (m = literal_cache; m; m = m->next) {
if (m->make_decimal) {
if (CB_TREE_CLASS (m->x) == CB_CLASS_NUMERIC
&& m->make_decimal) {
if (!seen) {
seen = 1;
output_line ("/* Clear Decimal Constant values */");
Expand Down Expand Up @@ -13930,7 +13932,8 @@ codegen_internal (struct cb_program *prog, const int subsequent_call)
struct literal_list* m = literal_cache;
int comment_gen = 0;
for (; m; m = m->next) {
if (m->make_decimal) {
if (CB_TREE_CLASS (m->x) == CB_CLASS_NUMERIC
&& m->make_decimal) {
if (!comment_gen) {
comment_gen = 1;
output_local ("\n/* Decimal constants */\n");
Expand Down

0 comments on commit 50940f0

Please sign in to comment.