Skip to content

Commit 11d5b5e

Browse files
committed
Rename 'i32_to_char' to 'convert_i32_to_char'
1 parent c0ee0ce commit 11d5b5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

design/mvp/canonical-abi/definitions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def load(cx, ptr, t):
423423
case S64() : return load_int(cx, ptr, 8, signed=True)
424424
case Float32() : return canonicalize32(reinterpret_i32_as_float(load_int(cx, ptr, 4)))
425425
case Float64() : return canonicalize64(reinterpret_i64_as_float(load_int(cx, ptr, 8)))
426-
case Char() : return i32_to_char(cx, load_int(cx, ptr, 4))
426+
case Char() : return convert_i32_to_char(cx, load_int(cx, ptr, 4))
427427
case String() : return load_string(cx, ptr)
428428
case List(t) : return load_list(cx, ptr, t)
429429
case Record(fields) : return load_record(cx, ptr, fields)
@@ -466,7 +466,7 @@ def canonicalize64(f):
466466

467467
#
468468

469-
def i32_to_char(cx, i):
469+
def convert_i32_to_char(cx, i):
470470
trap_if(i >= 0x110000)
471471
trap_if(0xD800 <= i <= 0xDFFF)
472472
return chr(i)
@@ -949,7 +949,7 @@ def lift_flat(cx, vi, t):
949949
case S64() : return lift_flat_signed(vi, 64, 64)
950950
case Float32() : return canonicalize32(vi.next('f32'))
951951
case Float64() : return canonicalize64(vi.next('f64'))
952-
case Char() : return i32_to_char(cx, vi.next('i32'))
952+
case Char() : return convert_i32_to_char(cx, vi.next('i32'))
953953
case String() : return lift_flat_string(cx, vi)
954954
case List(t) : return lift_flat_list(cx, vi, t)
955955
case Record(fields) : return lift_flat_record(cx, vi, fields)

0 commit comments

Comments
 (0)