Skip to content

Commit

Permalink
fixed float_t->mp_float_t mistake in ndarray.c
Browse files Browse the repository at this point in the history
  • Loading branch information
v923z committed Nov 4, 2019
1 parent 5c540e0 commit 08b8fd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/ndarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mp_float_t ndarray_get_float_value(void *data, uint8_t typecode, size_t index) {
} else if(typecode == NDARRAY_INT16) {
return (mp_float_t)((int16_t *)data)[index];
} else {
return (mp_float_t)((float_t *)data)[index];
return (mp_float_t)((mp_float_t *)data)[index];
}
}

Expand Down
10 changes: 5 additions & 5 deletions docs/ulab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3285,11 +3285,11 @@
},
{
"cell_type": "code",
"execution_count": 374,
"execution_count": 632,
"metadata": {
"ExecuteTime": {
"end_time": "2019-11-01T13:08:29.333165Z",
"start_time": "2019-11-01T13:08:29.322821Z"
"end_time": "2019-11-04T18:27:33.495075Z",
"start_time": "2019-11-04T18:27:33.480012Z"
},
"code_folding": []
},
Expand All @@ -3298,7 +3298,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"written 41196 bytes to ndarray.c\n"
"written 41199 bytes to ndarray.c\n"
]
}
],
Expand Down Expand Up @@ -3344,7 +3344,7 @@
" } else if(typecode == NDARRAY_INT16) {\n",
" return (mp_float_t)((int16_t *)data)[index];\n",
" } else {\n",
" return (mp_float_t)((float_t *)data)[index];\n",
" return (mp_float_t)((mp_float_t *)data)[index];\n",
" }\n",
"}\n",
"\n",
Expand Down

0 comments on commit 08b8fd0

Please sign in to comment.