Minor pointer fix

This commit is contained in:
Joshua Granick
2018-08-29 13:23:58 -07:00
parent 56e37aa886
commit e488e20153
2 changed files with 4 additions and 1 deletions

View File

@@ -452,6 +452,8 @@ namespace lime {
double lime_bytes_get_data_pointer_offset (value bytes, int offset) {
if (val_is_null (bytes)) return 0;
Bytes data = Bytes (bytes);
return (uintptr_t)data.b + offset;
@@ -460,6 +462,7 @@ namespace lime {
HL_PRIM double hl_lime_bytes_get_data_pointer_offset (Bytes* bytes, int offset) {
if (!bytes) return 0;
return (uintptr_t)bytes->b + offset;
}