Silence warning about pointer cast to int.

This cast was safe because the pointer is a small constant integer,
but it causes warning from gcc.
This commit is contained in:
George Koehler 2017-11-13 18:21:26 -05:00
parent ddf9de3f49
commit 974fa93491

View file

@ -5,6 +5,7 @@
/* next line DEBUG */
#include "debug.h"
#include <stddef.h>
#include <alloc.h>
#include <assert.h>
#include <em_arith.h>
@ -21,7 +22,7 @@
#include "scope.h"
#include "type.h"
#define PC_BUFSIZ (sizeof(struct file) - (int)((struct file *)0)->bufadr)
#define PC_BUFSIZ (sizeof(struct file) - offsetof(struct file, bufadr))
int proclevel = 0; /* nesting level of procedures */
int parlevel = 0; /* nesting level of parametersections */