File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2395,42 +2395,42 @@ public abstract static class CastToJavaDoubleNode extends PNodeWithContext {
2395
2395
public abstract double execute (Object arg );
2396
2396
2397
2397
@ Specialization
2398
- double run (boolean value ) {
2398
+ static double run (boolean value ) {
2399
2399
return value ? 1.0 : 0.0 ;
2400
2400
}
2401
2401
2402
2402
@ Specialization
2403
- double run (int value ) {
2403
+ static double run (int value ) {
2404
2404
return value ;
2405
2405
}
2406
2406
2407
2407
@ Specialization
2408
- double run (long value ) {
2408
+ static double run (long value ) {
2409
2409
return value ;
2410
2410
}
2411
2411
2412
2412
@ Specialization
2413
- double run (double value ) {
2413
+ static double run (double value ) {
2414
2414
return value ;
2415
2415
}
2416
2416
2417
2417
@ Specialization
2418
- double run (PInt value ) {
2418
+ static double run (PInt value ) {
2419
2419
return value .doubleValue ();
2420
2420
}
2421
2421
2422
2422
@ Specialization
2423
- double run (PFloat value ) {
2423
+ static double run (PFloat value ) {
2424
2424
return value .getValue ();
2425
2425
}
2426
2426
2427
2427
@ Specialization (guards = "!object.isDouble()" )
2428
- double doLongNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
2428
+ static double doLongNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
2429
2429
return object .getLong ();
2430
2430
}
2431
2431
2432
2432
@ Specialization (guards = "object.isDouble()" )
2433
- double doDoubleNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
2433
+ static double doDoubleNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
2434
2434
return object .getDouble ();
2435
2435
}
2436
2436
}
You can’t perform that action at this time.
0 commit comments