Fix a couple of compilation warnings.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=112676296
This commit is contained in:
andrewlewis 2016-01-21 05:34:30 -08:00 committed by Oliver Woodman
parent 89ce1ccedf
commit e6637c50c2

View File

@ -187,7 +187,7 @@ import java.util.Arrays;
return modes;
}
private static Mode[] readModes(VorbisBitArray bitArray) throws ParserException {
private static Mode[] readModes(VorbisBitArray bitArray) {
int modeCount = bitArray.readBits(6) + 1;
Mode[] modes = new Mode[modeCount];
for (int i = 0; i < modeCount; i++) {
@ -390,11 +390,10 @@ import java.util.Arrays;
}
/**
* @see <a href="http://svn.xiph.org/trunk/vorbis/lib/sharedbook.c">function
* _book_maptype1_quantvals</a> of libvorbis.
* @see <a href="http://svn.xiph.org/trunk/vorbis/lib/sharedbook.c">_book_maptype1_quantvals</a>
*/
private static long mapType1QuantValues(long entries, long dimension) {
return (long) Math.floor(Math.pow((double) entries, 1.d / dimension));
return (long) Math.floor(Math.pow(entries, 1.d / dimension));
}
public static final class CodeBook {