64-bit enum type ?
- From: kernwind@xxxxxxxxx
- Date: Fri, 22 Feb 2008 23:06:03 -0800 (PST)
porting 32 to 64....
enum x {
port_a=34 ,
b=45 ,
c=78
}
if we use
WRITE_PORT_ULONG ( (PULONG)port_a, 1234 ) ;
compiler error
: error C4312: 'type cast' : conversion from 'int' to 'PULONG' of
greater size
Is there any enum64 kind of new data types for 64-bit driver porting ?
There are MANY occurances like this in a 32-bit driver code to be
ported to 64-bit.
A simple
enum_64_R_32 x { // will resolve to 32 or 64 based on build
port_a=34 ,
b=45 ,
c=78
}
could solve the problem, but there seems to be no such easy way out.
Any suggestions for quick porting ?
thx
ugk
.
- Follow-Ups:
- Re: 64-bit enum type ?
- From: Maxim S. Shatskih
- Re: 64-bit enum type ?
- From: David Craig
- Re: 64-bit enum type ?
- Prev by Date: Re: problem to understand behavior of I/O manager
- Next by Date: Re: problem to understand behavior of I/O manager
- Previous by thread: Re: KMDF driver accessing parallel port
- Next by thread: Re: 64-bit enum type ?
- Index(es):
Relevant Pages
|