diff options
author | Anton Adamansky <adamansky@gmail.com> | 2015-04-27 22:11:00 +0600 |
---|---|---|
committer | Anton Adamansky <adamansky@gmail.com> | 2015-04-27 22:11:00 +0600 |
commit | 3ee3c44cac0896a9c042658f44f5cc6c92b00690 (patch) | |
tree | 307ed6efb1e6133f76092574a224826459d6a7d3 /src/tcutil/tcutil.c | |
parent | 639eabfa667e8a9f6b3286bbd973cb2ca21822c7 (diff) | |
download | ejdb-3ee3c44cac0896a9c042658f44f5cc6c92b00690.tar.gz ejdb-3ee3c44cac0896a9c042658f44f5cc6c92b00690.tar.bz2 ejdb-3ee3c44cac0896a9c042658f44f5cc6c92b00690.zip |
minor refactoring
Diffstat (limited to 'src/tcutil/tcutil.c')
-rw-r--r-- | src/tcutil/tcutil.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tcutil/tcutil.c b/src/tcutil/tcutil.c index 748ed5c..377555a 100644 --- a/src/tcutil/tcutil.c +++ b/src/tcutil/tcutil.c @@ -275,7 +275,8 @@ static void tcvxstrprintf(TCXSTR *xstr, const char *format, va_list ap) { case 'e': case 'E': case 'f': case 'g': case 'G': if (lnum >= 1) { //tlen = snprintf(tbuf, sizeof(tbuf), cbuf, va_arg(ap, long double)); - tlen = tcftoa(va_arg(ap, long double), tbuf, sizeof (tbuf), 6); + //tlen = tcftoa(va_arg(ap, long double), tbuf, sizeof (tbuf), 6); + tlen = tcftoa(va_arg(ap, double), tbuf, sizeof (tbuf), 6); } else { //tlen = snprintf(tbuf, sizeof(tbuf), cbuf, va_arg(ap, double)); tlen = tcftoa(va_arg(ap, double), tbuf, sizeof (tbuf), 6); @@ -9793,6 +9794,8 @@ const char *tcerrmsg(int ecode) { case TCENOREC: return "no record found"; case TCETR: return "illegal transaction state"; case TCEMISC: return "miscellaneous error"; + case TCEICOMPRESS: return "unsupported database compression format"; + case TCEDATACOMPRESS: return "data compression error"; } return "unknown error"; } |