binary: Rename array accessors for clarity.

This commit is contained in:
Paul Sokolovsky
2014-04-11 03:46:09 +03:00
parent 2da81fa80c
commit ef9124f5ff
2 changed files with 8 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ int mp_binary_get_size(char typecode) {
return -1;
}
mp_obj_t mp_binary_get_val(char typecode, void *p, int index) {
mp_obj_t mp_binary_get_val_array(char typecode, void *p, int index) {
machine_int_t val = 0;
switch (typecode) {
case 'b':
@@ -121,7 +121,7 @@ mp_obj_t mp_binary_get_val_unaligned(char typecode, byte **ptr) {
}
}
void mp_binary_set_val(char typecode, void *p, int index, mp_obj_t val_in) {
void mp_binary_set_val_array(char typecode, void *p, int index, mp_obj_t val_in) {
machine_int_t val = 0;
if (MP_OBJ_IS_INT(val_in)) {
val = mp_obj_int_get(val_in);