[RFC] fix some -Wconversion warnings

I just changed the `percentage` field in `cursorentry_T` to `long`. It's used only in `cursor_shape.c` so it should not be a problem.