Skip to content

Commit

Permalink
Fixed bug with pointers as regular arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadeweka committed Oct 5, 2024
1 parent 0baca67 commit a378298
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ The term 'anyoli' means 'green' in the Maasai language, thus naming 'anyolite'.

## Upcoming releases

### Version 1.1.2

#### Bugfixes

* [X] Fixed pointers not working as regular arguments

### Version 2.0.0

IMPORTANT: Version 2.0.0 will introduce breaking changes to improve the general user experience.
Expand Down
4 changes: 3 additions & 1 deletion src/implementations/mruby/FormatString.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ module Anyolite
{% else %}
{% if arg.resolve <= Bool %}
"b"
{% elsif arg.resolve <= Int || arg.resolve <= Pointer %}
{% elsif arg.resolve <= Pointer %}
"o"
{% elsif arg.resolve <= Int %}
"i"
{% elsif arg.resolve <= Float || arg.resolve == Number %}
"f"
Expand Down

0 comments on commit a378298

Please sign in to comment.