[Kstars-devel] KDE/kdeedu/kstars/kstars/data/tools

Akarsh Simha akarshsimha at gmail.com
Sat Jul 19 17:14:35 CEST 2008


SVN commit 834747 by asimha:

Fixing bug in binfiletester.c which had been overlooked earlier.

CCMAIL: kstars-devel at kde.org



 M  +1 -1      binfiletester.c  


--- trunk/KDE/kdeedu/kstars/kstars/data/tools/binfiletester.c #834746:834747
@@ -142,7 +142,7 @@
     int index;
     u_int16_t id = 0;
     for( index = HTM_LEVEL + 1; index >= 1; --index ) {
-        id += (trixel[ index ] - '0') * (u_int16_t)round( pow(4, (index - HTM_LEVEL - 1)) );
+        id += (trixel[ index ] - '0') * (u_int16_t)round( pow(4, (HTM_LEVEL + 1 - index)) );
     }
     id += ( ( trixel[0] == 'S' ) ? round( pow(4, HTM_LEVEL + 1) ) + 1 : 0 );
     return id;


More information about the Kstars-devel mailing list