Commit a016fd53 authored by Michael Meeks's avatar Michael Meeks

Fix for reading large integers...

still need something better for writing doubles though...
parent c66e4224
1999-08-20 Michael Meeks <michael@imaginator.com>
* src/cell.c (cell_set_text_simple): Add checks for over/under
flow on integer reading... fall back to double values.
1999-08-16 Michael Meeks <michael@imaginator.com>
* src/fn-lookup.c (gnumeric_indirect): Fix leak
......
1999-08-20 Michael Meeks <michael@imaginator.com>
* src/cell.c (cell_set_text_simple): Add checks for over/under
flow on integer reading... fall back to double values.
1999-08-16 Michael Meeks <michael@imaginator.com>
* src/fn-lookup.c (gnumeric_indirect): Fix leak
......
1999-08-20 Michael Meeks <michael@imaginator.com>
* ms-formula-write.c (get_formula_index): Added a comment about
Excel's add-in formula names.
1999-08-17 Michael Meeks <michael@imaginator.com>
* ms-excel-read.[ch]: Remove sheet blank bit.
......
......@@ -86,6 +86,9 @@ get_formula_index (const gchar *name)
return fce;
}
}
/* Note: many functions are provided by addins: we need a table
of these, and to pre-scan and create the dummy names that go with
them, then reference them here. */
g_warning ("Serious error, unknown function");
return NULL;
}
......
......@@ -649,7 +649,8 @@ cell_set_text_simple (Cell *cell, const char *text)
int set=0;
l = strtol (text, &end, 10);
if (text != end && (l == (int)l)) {
if (l != LONG_MAX && l != LONG_MIN &&
text != end && (l == (int)l)) {
/* Allow and ignore spaces at the end of integers. */
while (*end == ' ')
end++;
......@@ -662,7 +663,7 @@ cell_set_text_simple (Cell *cell, const char *text)
if (!set) {
double d;
d = strtod (text, &end);
if (text != end && *end == 0){
if (text != end && *end == 0) {
/* It is a floating point number. */
cell->value = value_new_float ((float_t)d);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment