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 {
23952395 public abstract double execute (Object arg );
23962396
23972397 @ Specialization
2398- double run (boolean value ) {
2398+ static double run (boolean value ) {
23992399 return value ? 1.0 : 0.0 ;
24002400 }
24012401
24022402 @ Specialization
2403- double run (int value ) {
2403+ static double run (int value ) {
24042404 return value ;
24052405 }
24062406
24072407 @ Specialization
2408- double run (long value ) {
2408+ static double run (long value ) {
24092409 return value ;
24102410 }
24112411
24122412 @ Specialization
2413- double run (double value ) {
2413+ static double run (double value ) {
24142414 return value ;
24152415 }
24162416
24172417 @ Specialization
2418- double run (PInt value ) {
2418+ static double run (PInt value ) {
24192419 return value .doubleValue ();
24202420 }
24212421
24222422 @ Specialization
2423- double run (PFloat value ) {
2423+ static double run (PFloat value ) {
24242424 return value .getValue ();
24252425 }
24262426
24272427 @ Specialization (guards = "!object.isDouble()" )
2428- double doLongNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
2428+ static double doLongNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
24292429 return object .getLong ();
24302430 }
24312431
24322432 @ Specialization (guards = "object.isDouble()" )
2433- double doDoubleNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
2433+ static double doDoubleNativeWrapper (DynamicObjectNativeWrapper .PrimitiveNativeWrapper object ) {
24342434 return object .getDouble ();
24352435 }
24362436 }
You can’t perform that action at this time.
0 commit comments