diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h index 8e4e5d569ae..339e7d9bb6d 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -954,7 +954,7 @@ extern int last_per_buffer_idx; | |||
| 954 | from the start of a buffer structure. */ | 954 | from the start of a buffer structure. */ |
| 955 | 955 | ||
| 956 | #define PER_BUFFER_VAR_OFFSET(VAR) \ | 956 | #define PER_BUFFER_VAR_OFFSET(VAR) \ |
| 957 | ((char *) &((struct buffer *)0)->VAR - (char *) ((struct buffer *)0)) | 957 | offsetof (struct buffer, VAR) |
| 958 | 958 | ||
| 959 | /* Return the index of buffer-local variable VAR. Each per-buffer | 959 | /* Return the index of buffer-local variable VAR. Each per-buffer |
| 960 | variable has an index > 0 associated with it, except when it always | 960 | variable has an index > 0 associated with it, except when it always |