Commit 29acd98
authored
Make
Hi, this PR makes the behavior of `Fiddle::Pointer#to_s` consistent
between CRuby and JRuby.
```ruby
ptr = Fiddle::Pointer.malloc(4)
p ptr.to_s(4)
```
currently outputs `"\x00\x00\x00\x00"` with CRuby and `""` with JRuby.Fiddle::Pointer#to_s with JRuby consistent with CRuby (#176)1 parent ef2382a commit 29acd98
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
412 | 411 | | |
413 | 412 | | |
414 | | - | |
| 413 | + | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
0 commit comments