Changeset 6eb50ab in git for src/commands.c


Ignore:
Timestamp:
08/03/15 02:22:55 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
fe340a5
Parents:
009a9e4
Message:

src/commands.c: Slightly simplify handling of the units scaling
factor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/commands.c

    r009a9e4 r6eb50ab  
    14451445      return;
    14461446   }
    1447    if (factor == HUGE_REAL) factor = (real)1.0;
    14481447
    14491448   units = get_units(qmask, fTrue);
     
    14541453      pcs->f_backclino_percent = (units == UNITS_PERCENT);
    14551454
    1456    factor *= factor_tab[units];
     1455   if (factor == HUGE_REAL) {
     1456      factor = factor_tab[units];
     1457   } else {
     1458      factor *= factor_tab[units];
     1459   }
    14571460
    14581461   for (quantity = 0, m = BIT(quantity); m <= qmask; quantity++, m <<= 1)
Note: See TracChangeset for help on using the changeset viewer.