Commit 6d5d3f18 authored by advasila's avatar advasila
Browse files

fix fp precision

parent 0cc758c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ void calculate_nbits_meta(
                priority[obj] = max_p;
            }
        }
        bits_ism[obj] = bits_direction_masa[0] - (int16_t) ( ( 1 - priority[obj] ) * 7 );
        bits_ism[obj] = bits_direction_masa[0] - (int16_t) ( ( 1 - ( (int16_t) ( priority[obj] * 1000.0f ) ) * 0.001f ) * 7 );
    }
    return;
}