Changeset: b8cd2f5a32a5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b8cd2f5a32a5
Modified Files:
gdk/gdk_atoms.mx
Branch: Dec2011
Log Message:
When converting the string "nil" to flt, advance the pointer.
This way fltFromStr works the same way as all other *FromStr
functions.
diffs (11 lines):
diff --git a/gdk/gdk_atoms.mx b/gdk/gdk_atoms.mx
--- a/gdk/gdk_atoms.mx
+++ b/gdk/gdk_atoms.mx
@@ -1446,6 +1446,7 @@ fltFromStr(char *src, int *len, flt **ds
if (p[0] == 'n' && p[1] == 'i' && p[2] == 'l') {
**dst = flt_nil;
p += 3;
+ n = (int) (p - src);
} else {
#ifdef HAVE_STRTOF
/* on overflow, strtof returns HUGE_VALF and sets
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list