Skip to content

Commit 08ba36d

Browse files
committed
Correcting style.
1 parent e0668af commit 08ba36d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MathModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ public double ldexpPIL(PInt mantissa, long exp) {
975975
@Child private LdexpNode recursiveNode;
976976

977977
@Fallback
978-
public double ldexpOO(Object mantissa, @SuppressWarnings("unused") Object exp) {
978+
public double ldexpOO(Object mantissa, Object exp) {
979979
if (PGuards.isInteger(exp) || PGuards.isPInt(exp) || (exp instanceof Boolean)) {
980980
if (castNode == null) {
981981
CompilerDirectives.transferToInterpreterAndInvalidate();

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CastToIntegerFromIndexNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public PInt toInt(PInt x) {
7676
}
7777

7878
@Specialization
79-
public long toInt(@SuppressWarnings("unused") double x) {
79+
public long toInt(double x) {
8080
throw raise(TypeError, "'%p' object cannot be interpreted as an integer", x);
8181
}
8282

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CastToIntegerFromIntNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public PInt toInt(PInt x) {
7676
}
7777

7878
@Specialization
79-
public long toInt(@SuppressWarnings("unused") double x) {
79+
public long toInt(double x) {
8080
throw raise(TypeError, "'%p' object cannot be interpreted as an integer", x);
8181
}
8282

0 commit comments

Comments
 (0)