summaryrefslogtreecommitdiff
path: root/sql/gcalc_slicescan.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2011-11-22 17:57:33 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2011-11-22 17:57:33 +0400
commit12e60c4989ce0214da88faad7c08d2f046885327 (patch)
treef869673b59ec953598948bd50bdfe251c119a729 /sql/gcalc_slicescan.cc
parentae0ebd8a6b0d239b5910093cb59761493f671542 (diff)
downloadmariadb-git-12e60c4989ce0214da88faad7c08d2f046885327.tar.gz
Small fixes to make compilers happy.
Diffstat (limited to 'sql/gcalc_slicescan.cc')
-rw-r--r--sql/gcalc_slicescan.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/gcalc_slicescan.cc b/sql/gcalc_slicescan.cc
index 81516029f25..7021902ffb7 100644
--- a/sql/gcalc_slicescan.cc
+++ b/sql/gcalc_slicescan.cc
@@ -157,7 +157,7 @@ static void GCALC_DBUG_PRINT_SLICE(const char *header,
#else
-#define GCALC_DBUG_CHECK_COUNTER(a) do { } while(0)
+#define GCALC_DBUG_CHECK_COUNTER() do { } while(0)
#define GCALC_DBUG_PRINT_PI(pi) do { } while(0)
#define GCALC_DBUG_PRINT_SLICE(a, b) do { } while(0)
#define GCALC_DBUG_PRINT_INTERSECTIONS(a) do { } while(0)
@@ -432,7 +432,7 @@ void gcalc_mul_coord(Gcalc_internal_coord *result, int result_len,
gcalc_coord2 cur_b= n_b ? b[n_b] : FIRST_DIGIT(b[0]);
gcalc_coord2 mul= cur_a * cur_b + carry + result[n_a + n_b + 1];
result[n_a + n_b + 1]= mul % GCALC_DIG_BASE;
- carry= mul / GCALC_DIG_BASE;
+ carry= (gcalc_digit_t) (mul / GCALC_DIG_BASE);
} while (n_b--);
if (carry)
{
@@ -1396,7 +1396,7 @@ int Gcalc_scan_iterator::insert_top_node()
{
point *sp= state.slice;
point **prev_hook= &state.slice;
- point *sp1;
+ point *sp1= NULL;
point *sp0= new_slice_point();
int cmp_res;