mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix flipDateTimeToArm
This commit is contained in:
parent
1de7183c7a
commit
429bd5a4f3
1 changed files with 8 additions and 7 deletions
|
@ -850,11 +850,12 @@ LstSetDrawFunction( ListType* listP, ListDrawDataFuncPtr func )
|
||||||
void
|
void
|
||||||
flipDateTimeToArm( DateTimeType* out, const unsigned char* in )
|
flipDateTimeToArm( DateTimeType* out, const unsigned char* in )
|
||||||
{
|
{
|
||||||
out->second = read_unaligned16( &in[0] );
|
const DateTimeType* inp = (DateTimeType*)in;
|
||||||
out->minute = Byte_Swap16( &in[2] );
|
out->second = Byte_Swap16( inp->second );
|
||||||
out->hour = Byte_Swap16( &in[4] );
|
out->minute = Byte_Swap16( inp->minute );
|
||||||
out->day = Byte_Swap16( &in[6] );
|
out->hour = Byte_Swap16( inp->hour );
|
||||||
out->month = Byte_Swap16( &in[8] );
|
out->day = Byte_Swap16( inp->day );
|
||||||
out->year = Byte_Swap16( &in[10] );
|
out->month = Byte_Swap16( inp->month );
|
||||||
out->weekDay = Byte_Swap16( &in[12] );
|
out->year = Byte_Swap16( inp->year );
|
||||||
|
out->weekDay = Byte_Swap16( inp->weekDay );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue