Skip to content

Commit 198152e

Browse files
committed
bug(#3300): bytes
1 parent c44f0e6 commit 198152e

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

eo-runtime/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ SOFTWARE.
252252
<phase>generate-test-sources</phase>
253253
<goals>
254254
<goal>register</goal>
255-
<goal>compile</goal>
255+
<goal>assemble</goal>
256256
<goal>xmir-to-phi</goal>
257257
<goal>phi-to-xmir</goal>
258258
<goal>transpile</goal>

eo-runtime/src/main/eo/org/eolang/bytes.eo

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,41 +49,41 @@
4949
negative-infinity
5050
if.
5151
size.eq 8
52-
number ^
52+
number $
5353
error
5454
sprintf
5555
"Can't convert non 8 length bytes to a number, bytes are %x"
56-
* ^
56+
* $
5757
# Turn this chain of eight bytes into a i64 number.
5858
# If there are less or more than eight bytes, there will
5959
# be an error returned.
6060
if. > as-i64
6161
size.eq 8
62-
i64 ^
62+
i64 $
6363
error
6464
sprintf
6565
"Can't convert non 8 length bytes to i64, bytes are %x"
66-
* ^
66+
* $
6767
# Turn this chain of four bytes into a i32 number.
6868
# If there are less or more than four bytes, there will
6969
# be an error returned.
7070
if. > as-i32
7171
size.eq 4
72-
i32 ^
72+
i32 $
7373
error
7474
sprintf
7575
"Can't convert non 4 length bytes to i32, bytes are %x"
76-
* ^
76+
* $
7777
# Turn this chain of two bytes into a i16 number.
7878
# If there are less or more than two bytes, there will
7979
# be an error returned.
8080
if. > as-i16
8181
size.eq 2
82-
i16 ^
82+
i16 $
8383
error
8484
sprintf
8585
"Can't convert non 2 length bytes to i16, bytes are %x"
86-
* ^
86+
* $
8787

8888
# Equals to another object.
8989
# A condition where two objects have the same value or content.

eo-runtime/src/main/java/org/eolang/PhDefault.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public String locator() {
223223
public String forma() {
224224
final String name = this.oname();
225225
final String form;
226-
if (PhDefault.class.getName().equals(name)) {
226+
if (PhDefault.class.getSimpleName().equals(name)) {
227227
form = "[]";
228228
} else {
229229
form = String.join(

0 commit comments

Comments
 (0)