Skip to content

Commit 67c8ea5

Browse files
committed
FIX: fix for the last commit ):last minute changes:(
1 parent ef895ef commit 67c8ea5

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/core/u-bincode.c

+3-8
Original file line numberDiff line numberDiff line change
@@ -1372,10 +1372,7 @@ static REBCNT EncodedU32_Size(u32 value) {
13721372
case SYM_MSDOS_DATETIME:
13731373
n = 4;
13741374
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;
13791376
VAL_SET (temp, REB_DATE);
13801377
VAL_YEAR (temp) = msdt->val.year + 1980;
13811378
VAL_MONTH(temp) = msdt->val.month;
@@ -1388,8 +1385,7 @@ static REBCNT EncodedU32_Size(u32 value) {
13881385
case SYM_MSDOS_DATE:
13891386
n = 2;
13901387
ASSERT_READ_SIZE(value, cp, ep, n);
1391-
msd->num = ((u16)cp[0] << 0) |
1392-
((u16)cp[1] << 8) ;
1388+
msd = (ms_date*)cp;
13931389
CLEARS(temp);
13941390
VAL_SET (temp, REB_DATE);
13951391
VAL_YEAR (temp) = msd->date.year + 1980;
@@ -1400,8 +1396,7 @@ static REBCNT EncodedU32_Size(u32 value) {
14001396
case SYM_MSDOS_TIME:
14011397
n = 2;
14021398
ASSERT_READ_SIZE(value, cp, ep, n);
1403-
mst->num = ((u16)cp[0] << 0) |
1404-
((u16)cp[1] << 8) ;
1399+
mst = (ms_time*)cp;
14051400
CLEARS(temp);
14061401
VAL_SET (temp, REB_TIME);
14071402
VAL_TIME (temp) = TIME_SEC(mst->time.second * 2 // this format has only 2 sec resolution!

0 commit comments

Comments
 (0)