Changeset: a33f95d3b785 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a33f95d3b785
Modified Files:
        common/utils/msabaoth.c
Branch: Jun2016
Log Message:

Don't cast (f)getc to char: you loose information.
This fixes bug 4015.


diffs (12 lines):

diff --git a/common/utils/msabaoth.c b/common/utils/msabaoth.c
--- a/common/utils/msabaoth.c
+++ b/common/utils/msabaoth.c
@@ -849,7 +849,7 @@ msab_getUplogInfo(sabuplog *ret, const s
                int c;
                start = stop = up = 0;
                p = data;
-               while ((c = (char)fgetc(f)) != EOF) {
+               while ((c = getc(f)) != EOF) {
                        *p = (char)c;
                        switch (*p) {
                                case '\t':
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to