Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25071/src/server

Modified Files:
      Tag: SQL_2-16
        sql_atom.mx sql_symbol.mx 
Log Message:

for the sake of portability:

use LLFMT instead of "%lld"


Index: sql_symbol.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_symbol.mx,v
retrieving revision 1.28
retrieving revision 1.28.2.1
diff -u -d -r1.28 -r1.28.2.1
--- sql_symbol.mx       3 Jan 2007 12:39:48 -0000       1.28
+++ sql_symbol.mx       1 Apr 2007 11:53:50 -0000       1.28.2.1
@@ -159,7 +159,7 @@
                s->data.ival = data;
                s->type = type_int;
                if (symbol_debug)
-                       fprintf(stderr, "%ld = symbol_create_int(%s,%lld)\n", 
(long) s, token2string(s->token), data);
+                       fprintf(stderr, "%ld = 
symbol_create_int(%s,"LLFMT")\n", (long) s, token2string(s->token), data);
        }
        return s;
 }

Index: sql_atom.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_atom.mx,v
retrieving revision 1.50.2.3
retrieving revision 1.50.2.4
diff -u -d -r1.50.2.3 -r1.50.2.4
--- sql_atom.mx 31 Mar 2007 14:13:38 -0000      1.50.2.3
+++ sql_atom.mx 1 Apr 2007 11:53:49 -0000       1.50.2.4
@@ -119,7 +119,7 @@
                }
                a->data.len = 0;
                if (atom_debug)
-                       fprintf(stderr, "atom_int(%s,%lld)\n", 
tpe->type->sqlname, val);
+                       fprintf(stderr, "atom_int(%s,"LLFMT")\n", 
tpe->type->sqlname, val);
                return a;
        }
        return NULL;
@@ -244,7 +244,7 @@
 
        switch (a->data.vtype) { 
        case TYPE_lng:
-               sprintf(buf, "%lld", a->data.val.lval);
+               sprintf(buf, LLFMT, a->data.val.lval);
                break;
        case TYPE_int:
                sprintf(buf, "%d", a->data.val.ival);
@@ -301,7 +301,7 @@
        case EC_NUM:
                switch (a->data.vtype) {
                case TYPE_lng:
-                       sprintf(buf, "%lld", a->data.val.lval);
+                       sprintf(buf, LLFMT, a->data.val.lval);
                        break;
                case TYPE_int:
                        sprintf(buf, "%d", a->data.val.ival);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to