mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove stale comment for MJIT
This commit is contained in:
parent
38cf09fc70
commit
908fe85dfc
1 changed files with 0 additions and 1 deletions
|
@ -2179,7 +2179,6 @@ rb_w32_wstr_to_mbstr(UINT cp, const WCHAR *wstr, int clen, long *plen)
|
||||||
WCHAR *
|
WCHAR *
|
||||||
rb_w32_mbstr_to_wstr(UINT cp, const char *str, int clen, long *plen)
|
rb_w32_mbstr_to_wstr(UINT cp, const char *str, int clen, long *plen)
|
||||||
{
|
{
|
||||||
/* This is used by RJIT worker. Do not trigger GC or call Ruby method here. */
|
|
||||||
WCHAR *ptr;
|
WCHAR *ptr;
|
||||||
int len = MultiByteToWideChar(cp, 0, str, clen, NULL, 0);
|
int len = MultiByteToWideChar(cp, 0, str, clen, NULL, 0);
|
||||||
if (!(ptr = malloc(sizeof(WCHAR) * len))) return 0;
|
if (!(ptr = malloc(sizeof(WCHAR) * len))) return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue