← Back to team overview

maria-developers team mailing list archive

[Branch ~maria-captains/maria/5.1] Rev 2729: Fix compiler warnings.

 

------------------------------------------------------------
revno: 2729
committer: knielsen@xxxxxxxxxxxxxxx
branch nick: work
timestamp: Mon 2009-09-07 09:12:38 +0200
message:
  Fix compiler warnings.
modified:
  sql/opt_table_elimination.cc


--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1

Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'sql/opt_table_elimination.cc'
--- sql/opt_table_elimination.cc	2009-09-01 21:41:16 +0000
+++ sql/opt_table_elimination.cc	2009-09-07 07:12:38 +0000
@@ -1802,16 +1802,16 @@
     eq_mod->expr->print(&str, QT_ORDINARY);
     if (eq_mod->field)
     {
-      fprintf(DBUG_FILE, "  equality%d: %s -> %s.%s\n", 
-              eq_mod - equality_mods,
+      fprintf(DBUG_FILE, "  equality%ld: %s -> %s.%s\n", 
+              (long)(eq_mod - equality_mods),
               str.c_ptr(),
               eq_mod->field->table->table->alias,
               eq_mod->field->field->field_name);
     }
     else
     {
-      fprintf(DBUG_FILE, "  equality%d: multi-equality", 
-              eq_mod - equality_mods);
+      fprintf(DBUG_FILE, "  equality%ld: multi-equality", 
+              (long)(eq_mod - equality_mods));
     }
   }
   fprintf(DBUG_FILE,"\n");