Fix a couple of compilation warnings.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=112676296
This commit is contained in:
parent
89ce1ccedf
commit
e6637c50c2
@ -187,7 +187,7 @@ import java.util.Arrays;
|
|||||||
return modes;
|
return modes;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Mode[] readModes(VorbisBitArray bitArray) throws ParserException {
|
private static Mode[] readModes(VorbisBitArray bitArray) {
|
||||||
int modeCount = bitArray.readBits(6) + 1;
|
int modeCount = bitArray.readBits(6) + 1;
|
||||||
Mode[] modes = new Mode[modeCount];
|
Mode[] modes = new Mode[modeCount];
|
||||||
for (int i = 0; i < modeCount; i++) {
|
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
|
* @see <a href="http://svn.xiph.org/trunk/vorbis/lib/sharedbook.c">_book_maptype1_quantvals</a>
|
||||||
* _book_maptype1_quantvals</a> of libvorbis.
|
|
||||||
*/
|
*/
|
||||||
private static long mapType1QuantValues(long entries, long dimension) {
|
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 {
|
public static final class CodeBook {
|
||||||
@ -465,7 +464,7 @@ import java.util.Arrays;
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final class Mode {
|
public static final class Mode {
|
||||||
|
|
||||||
public final boolean blockFlag;
|
public final boolean blockFlag;
|
||||||
public final int windowType;
|
public final int windowType;
|
||||||
public final int transformType;
|
public final int transformType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user