Date: Wednesday, March 29, 2006 @ 13:08:42
Author: zsolt
Path: /cvsroot/carob/libmysequoia/src
Modified: Utils.cpp (1.37 -> 1.38)
- corrected getFromFloat() trimming when decimals >= 31
-----------+
Utils.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: libmysequoia/src/Utils.cpp
diff -u libmysequoia/src/Utils.cpp:1.37 libmysequoia/src/Utils.cpp:1.38
--- libmysequoia/src/Utils.cpp:1.37 Wed Mar 29 13:00:43 2006
+++ libmysequoia/src/Utils.cpp Wed Mar 29 13:08:42 2006
@@ -648,7 +648,7 @@
if (field->decimals >= 31)
{
len = sprintf((char *)bind->buffer, "%-*.*g",
(int)bind->buffer_length, (int)min(14, FLT_DIG), f);
- if (len > 0 && (unsigned)len < bind->buffer_length)
+ if (len > 0 && (unsigned)len <= bind->buffer_length)
{
char *c = strchr((char *)bind->buffer, ' ');
*c = 0;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits