Projects

Ticket #733: macruby_allow_undefined_pointer.patch

File macruby_allow_undefined_pointer.patch, 0.6 KB (added by nagachika00@…, 2 years ago)

patch to MacRuby to avoid unrecognized runtime type exception.

  • compiler.cpp

    diff --git a/compiler.cpp b/compiler.cpp
    index e1d50ba..42a9e79 100644
    a b  
    52705270            break; 
    52715271 
    52725272        case _C_UCHR: 
     5273        case _C_UNDEF: 
    52735274            func = rvalToUcharFunc; 
    52745275            break; 
    52755276 
     
    56165617 
    56175618    switch (*type) { 
    56185619        case _C_VOID: 
     5620        case _C_UNDEF: 
    56195621            return nilVal; 
    56205622 
    56215623        case _C_BOOL: 
     
    57605762        case _C_BOOL: 
    57615763        case _C_UCHR: 
    57625764        case _C_CHR: 
     5765        case _C_UNDEF: 
    57635766            return Int8Ty; 
    57645767 
    57655768        case _C_SHT: