store all float values in doubles (#105)

This commit is contained in:
mrks 2018-11-17 12:02:48 +01:00 committed by GitHub
parent 62d162579a
commit b35fce9977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ struct Expr {
char* name; char* name;
char* table; char* table;
char* alias; char* alias;
float fval; double fval;
int64_t ival; int64_t ival;
int64_t ival2; int64_t ival2;
DatetimeField datetimeField; DatetimeField datetimeField;

View File

@ -14,7 +14,7 @@ namespace hsql {
void inprint(int64_t val, uintmax_t numIndent) { void inprint(int64_t val, uintmax_t numIndent) {
std::cout << indent(numIndent).c_str() << val << " " << std::endl; std::cout << indent(numIndent).c_str() << val << " " << std::endl;
} }
void inprint(float val, uintmax_t numIndent) { void inprint(double val, uintmax_t numIndent) {
std::cout << indent(numIndent).c_str() << val << std::endl; std::cout << indent(numIndent).c_str() << val << std::endl;
} }
void inprint(const char* val, uintmax_t numIndent) { void inprint(const char* val, uintmax_t numIndent) {