Commit 2cbaccec authored by dbarbera's avatar dbarbera
Browse files

Fixed ranges in substring values

parent 14eaa27f
......@@ -787,7 +787,9 @@ def _prim_substring_reference(prim, ctx):
arr_ptr = ctx.builder.gep(seqof_val, [,])
arr_ptr = ctx.builder.gep(arr_ptr, [low_val])
arr_ptr_llty = arr_ptr.type
arr_ptr = ctx.builder.gep(arr_ptr, [, low_val])
arr_ptr = ctx.builder.bitcast(arr_ptr, arr_ptr_llty)
return SDLSubstringValue(arr_ptr, count_val, asn1ty)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment