*fixed a mistake in generic array
This commit is contained in:
parent
78fe0e0036
commit
a4c2a73bc4
@ -2434,7 +2434,7 @@ bool_t _get_array_elem(mb_interpreter_t* s, _array_t* arr, unsigned int index, m
|
|||||||
if(arr->types[index] == _DT_REAL) {
|
if(arr->types[index] == _DT_REAL) {
|
||||||
val->float_point = *((real_t*)rawptr);
|
val->float_point = *((real_t*)rawptr);
|
||||||
*type = _DT_REAL;
|
*type = _DT_REAL;
|
||||||
} else if(arr->types[index] == _DT_REAL) {
|
} else if(arr->types[index] == _DT_INT) {
|
||||||
val->integer = *((int_t*)rawptr);
|
val->integer = *((int_t*)rawptr);
|
||||||
*type = _DT_INT;
|
*type = _DT_INT;
|
||||||
} else if(arr->types[index] == _DT_USERTYPE) {
|
} else if(arr->types[index] == _DT_USERTYPE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user