File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -115,19 +115,19 @@ public abstract static class PyLongAsByteArray extends Node {
115115
116116 protected static int asWellSizedData (int len ) {
117117 switch (len ) {
118- case 1 :
119- case 2 :
120- case 4 :
121- case 8 :
122- return len ;
123- default :
124- return -1 ;
118+ case 1 :
119+ case 2 :
120+ case 4 :
121+ case 8 :
122+ return len ;
123+ default :
124+ return -1 ;
125125 }
126126 }
127127
128128 @ Specialization (guards = "size == cachedDataLen" , limit = "4" )
129129 static byte [] doPrimitive (long value , int size , boolean bigEndian ,
130- @ Cached ("asWellSizedData(size)" ) int cachedDataLen ) {
130+ @ Cached ("asWellSizedData(size)" ) int cachedDataLen ) {
131131 final byte [] bytes = new byte [size ];
132132 NumericSupport support = bigEndian ? NumericSupport .bigEndian () : NumericSupport .littleEndian ();
133133 support .putLong (bytes , 0 , value , cachedDataLen );
@@ -174,19 +174,19 @@ protected static boolean fitsInLong(byte[] data) {
174174
175175 protected static int asWellSizedData (int len ) {
176176 switch (len ) {
177- case 1 :
178- case 2 :
179- case 4 :
180- case 8 :
181- return len ;
182- default :
183- return -1 ;
177+ case 1 :
178+ case 2 :
179+ case 4 :
180+ case 8 :
181+ return len ;
182+ default :
183+ return -1 ;
184184 }
185185 }
186186
187187 @ Specialization (guards = "data.length == cachedDataLen" , limit = "4" )
188188 static Object doLong (byte [] data , boolean bigEndian ,
189- @ Cached ("asWellSizedData(data.length)" ) int cachedDataLen ) {
189+ @ Cached ("asWellSizedData(data.length)" ) int cachedDataLen ) {
190190 NumericSupport support = bigEndian ? NumericSupport .bigEndian () : NumericSupport .littleEndian ();
191191 return support .getLong (data , 0 , cachedDataLen );
192192 }
You can’t perform that action at this time.
0 commit comments