diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 12:32:33 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-22 12:32:33 +0100 |
| commit | e2f130542be12a22c62744e718f0a5f884fc89d5 (patch) | |
| tree | 74ee4013dd811f10dcac4c9b81d6376c6a7c7871 /vis-lua.c | |
| parent | 53665d0e550330c331589df4d11de697e3a6ec91 (diff) | |
| download | vis-e2f130542be12a22c62744e718f0a5f884fc89d5.tar.gz vis-e2f130542be12a22c62744e718f0a5f884fc89d5.tar.xz | |
text: change datatype of Mark to uintptr_t
This should avoid undefined pointer comparisons.
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1609,7 +1609,7 @@ static int file_mark_set(lua_State *L) { */ static int file_mark_get(lua_State *L) { File *file = obj_ref_check(L, 1, "vis.file"); - Mark mark = obj_lightref_check(L, 2, "vis.file.mark"); + Mark mark = (Mark)obj_lightref_check(L, 2, "vis.file.mark"); size_t pos = text_mark_get(file->text, mark); if (pos == EPOS) lua_pushnil(L); |
