Skip to content

Commit

Permalink
Merge pull request #232 from Eclalang/issue-#229-fix-list-add
Browse files Browse the repository at this point in the history
casted int to rune
  • Loading branch information
Sanegv authored Feb 25, 2024
2 parents 5850fbc + 2696dc0 commit 54076c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/eclaType/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (l *List) Add(other Type) (Type, error) {
for _, elem := range other.(*List).Value {
i := int(elem.(Int))
var err error = nil
c, err := NewChar(string(i))
c, err := NewChar(string(rune(i)))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 54076c5

Please sign in to comment.