<HTML>
<BODY>
Hi, <br>
<br>
First try at this ... single vcl patch attached.<br>
<br>
Fixed unit conversion table initialization so there are no more compiler warnings and no more zero entries...<br>
<br>
Relevant changes below, <br>
dont know where all the +/- blank lines came from,<br>
any suggestions on a better code editor than gedit? <br>
<br>
<br>
===========<br>
<br>
#define K *1000L<br>
-#define M *1000000L<br>
+#define M *1000000LL<br>
#define X *5280L<br>
<br>
-// Amelia : about measurement unit, 'char' and 'line'<br>
-//static const sal_Int64 aImplFactor[FUNIT_MILE+1][FUNIT_MILE+1] =<br>
+// twip in km = 254 / 14 400 000 000<br>
+// expressions too big for default size 32 bit need LL to avoid overflow<br>
+<br>
static const sal_Int64 aImplFactor[FUNIT_LINE+1][FUNIT_LINE+1] =<br>
{ /*<br>
-mm/100 mm cm m km twip point pica inch foot mile char line*/<br>
+mm/100 mm cm m km twip point pica inch foot mile char line */<br>
{ 1, 100, 1 K, 100 K, 100 M, 2540, 2540, 2540, 2540,2540*12,2540*12 X , 53340, 396240},<br>
{ 1, 1, 10, 1 K, 1 M, 2540, 2540, 2540, 2540,2540*12,2540*12 X , 5334, 396240},<br>
{ 1, 1, 1, 100, 100 K, 254, 254, 254, 254, 254*12, 254*12 X , 5334, 39624},<br>
{ 1, 1, 1, 1, 1 K, 254, 254, 254, 254, 254*12, 254*12 X , 533400, 39624},<br>
-{ 1, 1, 1, 1, 1, 0, 254, 254, 254, 254*12, 254*12 X ,533400 K, 39624},<br>
-{ 1440,144 K,144 K,14400 K, 0, 1, 20, 240, 1440,1440*12,1440*12 X , 210, 3120},<br>
+{ 1, 1, 1, 1, 1, 254, 254, 254, 254, 254*12, 254*12 X ,533400 K, 39624},<br>
+{ 1440,144 K,144 K,14400 K,14400LL M, 1, 20, 240, 1440,1440*12,1440*12 X , 210, 3120},<br>
{ 72, 7200, 7200, 720 K, 720 M, 1, 1, 12, 72, 72*12, 72*12 X , 210, 156},<br>
{ 6, 600, 600, 60 K, 60 M, 1, 1, 1, 6, 6*12, 6*12 X , 210, 10},<br>
{ 1, 100, 100, 10 K, 10 M, 1, 1, 1, 1, 12, 12 X , 210, 45},<br>
{ 1, 100, 100, 10 K, 10 M, 1, 1, 1, 1, 1, 1 X , 210, 45},<br>
{ 1, 100, 100, 10 K, 10 M, 1, 1, 1, 1, 1, 1 , 210, 45},<br>
{ 144, 1440,14400, 14400, 14400, 1, 20, 240, 1440,1440*12, 1440*12 X, 1, 156 },<br>
-{ 720,72000,72000, 7200 K,7200 M, 20, 10, 13, 11, 11*12, 11*12 X, 105, 1 }<br>
+{ 720,72000,72000, 7200 K,7200LL M, 20, 10, 13, 11, 11*12, 11*12 X, 105, 1 }<br>
};<br>
-<br>
#undef X<br>
#undef M<br>
#undef K<br>
-// twip in km 254/14400 M<br>
</BODY></HTML>
<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span>