Skip to content

Commit a80b59f

Browse files
committed
Remove sprintf patches
PullRequest: truffleruby/753
2 parents 75b3f33 + 9e8c200 commit a80b59f

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

lib/cext/patches/pg_patches.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ class PgPatches
7373
replacement: '#define CACHE_LOOKUP(this, klass) ( &this->cache_row[(unsigned long)(rb_tr_obj_id(klass)) & 0xff] )'
7474
},
7575
],
76-
'pg_type_map.c' => [
77-
# The result of rb_object_classname is used in an exception
78-
# string, We turn it into a ruby string to work round a bug in
79-
# our string formatting.
80-
{
81-
match: 'rb_obj_classname(self)',
82-
replacement: 'rb_str_new_cstr(rb_obj_classname(self))'
83-
}
84-
],
8576
}
8677
}
8778
end

src/main/c/openssl/ossl_x509name.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,7 @@ static VALUE
324324
ossl_x509name_inspect(VALUE self)
325325
{
326326
return rb_enc_sprintf(rb_utf8_encoding(), "#<%"PRIsVALUE" %"PRIsVALUE">",
327-
(long) rb_obj_class(self), (long) ossl_x509name_to_utf8(self));
328-
// TruffleRuby: added the two (long) casts above
327+
rb_obj_class(self), ossl_x509name_to_utf8(self));
329328
}
330329

331330
/*

0 commit comments

Comments
 (0)