gcode_parse.c: make decfloat_to_int handle all uints.

This saves 10 bytes of binary size and possible headaches (negative factors).
This commit is contained in:
Markus Hitter 2011-02-23 14:34:07 +01:00
parent c61191d86d
commit f985de8a54
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ GCODE_COMMAND next_target __attribute__ ((__section__ (".bss")));
extern const uint32_t powers[]; // defined in sermsg.c
const int32_t rounding[DECFLOAT_EXP_MAX] = {0, 5, 50, 500};
static int32_t decfloat_to_int(decfloat *df, int32_t multiplicand, uint32_t denominator) {
static int32_t decfloat_to_int(decfloat *df, uint32_t multiplicand, uint32_t denominator) {
int32_t r = df->mantissa;
uint8_t e = df->exponent;