1 |
|
/* |
2 |
|
* ether_defs.h - Definitions for DLPI Ethernet Driver |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Marc Hellwig and Christian Bauer |
4 |
> |
* SheepShaver (C) 1997-2005 Marc Hellwig and Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
248 |
|
uint8 _pad[sizeof(type)]; |
249 |
|
public: |
250 |
|
operator public_type () const { |
251 |
< |
return (public_type)nw_memory_helper<sizeof(type)>::load((void *)this); |
251 |
> |
return (public_type)(uintptr)nw_memory_helper<sizeof(type)>::load((void *)this); |
252 |
|
} |
253 |
|
public_type operator -> () const { |
254 |
|
return this->operator public_type (); |
255 |
|
} |
256 |
|
nw_scalar_member_helper<type, public_type> & operator = (public_type val) { |
257 |
< |
nw_memory_helper<sizeof(type)>::store((void *)this, (type)val); |
257 |
> |
nw_memory_helper<sizeof(type)>::store((void *)this, (type)(uintptr)val); |
258 |
|
return *this; |
259 |
|
} |
260 |
|
nw_scalar_member_helper<type, public_type> & operator += (int val) { |