diff jmedcouple.c++ @ 27:40cbfb64e952

jmedcouple: change type of medc_idx to long
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sun, 18 Jan 2015 19:51:16 -0500
parents 518ef922033e
children 65f6fad65f49
line wrap: on
line diff
--- a/jmedcouple.c++
+++ b/jmedcouple.c++
@@ -138,7 +138,7 @@
 
   long Ltot = 0;
   long Rtot = n_minus*n_plus;
-  int medc_idx = Rtot/2;
+  long medc_idx = Rtot/2;
   
   // kth pair algorithm (Johnson & Mizoguchi)
   while (Rtot - Ltot > n_plus) {