File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1372,10 +1372,7 @@ static REBCNT EncodedU32_Size(u32 value) {
1372
1372
case SYM_MSDOS_DATETIME :
1373
1373
n = 4 ;
1374
1374
ASSERT_READ_SIZE (value , cp , ep , n );
1375
- msdt -> num = ((u32 )cp [0 ] << 0 ) |
1376
- ((u32 )cp [1 ] << 8 ) |
1377
- ((u32 )cp [2 ] << 16 ) |
1378
- ((u32 )cp [3 ] << 24 ) ;
1375
+ msdt = (ms_datetime * )cp ;
1379
1376
VAL_SET (temp , REB_DATE );
1380
1377
VAL_YEAR (temp ) = msdt -> val .year + 1980 ;
1381
1378
VAL_MONTH (temp ) = msdt -> val .month ;
@@ -1388,8 +1385,7 @@ static REBCNT EncodedU32_Size(u32 value) {
1388
1385
case SYM_MSDOS_DATE :
1389
1386
n = 2 ;
1390
1387
ASSERT_READ_SIZE (value , cp , ep , n );
1391
- msd -> num = ((u16 )cp [0 ] << 0 ) |
1392
- ((u16 )cp [1 ] << 8 ) ;
1388
+ msd = (ms_date * )cp ;
1393
1389
CLEARS (temp );
1394
1390
VAL_SET (temp , REB_DATE );
1395
1391
VAL_YEAR (temp ) = msd -> date .year + 1980 ;
@@ -1400,8 +1396,7 @@ static REBCNT EncodedU32_Size(u32 value) {
1400
1396
case SYM_MSDOS_TIME :
1401
1397
n = 2 ;
1402
1398
ASSERT_READ_SIZE (value , cp , ep , n );
1403
- mst -> num = ((u16 )cp [0 ] << 0 ) |
1404
- ((u16 )cp [1 ] << 8 ) ;
1399
+ mst = (ms_time * )cp ;
1405
1400
CLEARS (temp );
1406
1401
VAL_SET (temp , REB_TIME );
1407
1402
VAL_TIME (temp ) = TIME_SEC (mst -> time .second * 2 // this format has only 2 sec resolution!
You can’t perform that action at this time.
0 commit comments