Changeset: b9a367c69b45 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b9a367c69b45
Modified Files:
        monetdb5/modules/mal/txtsim.c
Branch: default
Log Message:

small fix, use lng for all values, avoids casting


diffs (12 lines):

diff --git a/monetdb5/modules/mal/txtsim.c b/monetdb5/modules/mal/txtsim.c
--- a/monetdb5/modules/mal/txtsim.c
+++ b/monetdb5/modules/mal/txtsim.c
@@ -74,7 +74,7 @@ dameraulevenshtein(int *res, const char 
        lng left;                                       /* contents of cell 
immediately to left */
        lng diag;                                       /* contents of cell 
immediately above and to left */
        lng sz;                                         /* number of bytes in 
matrix */
-       int diag2 = 0, cost2 = 0;
+       lng diag2 = 0, cost2 = 0;
        lng distance;
 
        if (strNil(s) || strNil(t)) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to