You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: When passing a char as a function argument, should I pass the number obtained by calling the string's ord method? #96
Thanks.
I hadn't thought about changing the Fiddle.
However, I understand what you are saying. Certainly this is something that many people would do on the Ruby code side .
Activity
kou commentedon Oct 17, 2021
Yes. Because
charis signed 8 bit integer in C.But we can pass one byte string directly with the following change:
kojix2 commentedon Oct 17, 2021
Thanks.
I hadn't thought about changing the Fiddle.
However, I understand what you are saying. Certainly this is something that many people would do on the Ruby code side .
kojix2 commentedon Oct 17, 2021
My issue has been resolved, but as a suggestion for possible changes, shall I leave this issue open?
kou commentedon Oct 17, 2021
Yes, please.
[ruby/fiddle] Add support for converting "C" (one character string) t…
Add support for converting "C" (one character string) to char