diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-07-23 22:21:17 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-07-23 22:21:17 +0200 |
commit | 54d70d3ebb20c36f483cde9d7d5b877772d4884e (patch) | |
tree | ff62abe2e250f47718e3096ceeaff9b09337a211 | |
parent | 3aab39f589c352e30e9db92346b579dd561482b3 (diff) | |
download | bird-54d70d3ebb20c36f483cde9d7d5b877772d4884e.tar bird-54d70d3ebb20c36f483cde9d7d5b877772d4884e.zip |
Fixes compiler warning in OFFSETOF().
-rw-r--r-- | lib/birdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index b7cd6b4..12a581b 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -13,7 +13,7 @@ /* Ugly structure offset handling macros */ -#define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i) +#define OFFSETOF(s, i) ((size_t) &((s *)0)->i) #define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i))) #define BIRD_ALIGN(s, a) (((s)+a-1)&~(a-1)) |