File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 525
525
switch (propertyInfo[propID].length )
526
526
{
527
527
case 2 :
528
- *value &= 0xFFFF ;
528
+ *value = static_cast < int16_t >(*value) ;
529
529
break ;
530
530
case 1 :
531
- *value &= 0xFF ;
531
+ *value = static_cast < int8_t >(*value) ;
532
532
break ;
533
533
default :
534
534
break ;
668
668
switch (propertyInfo[propID].length )
669
669
{
670
670
case 2 :
671
- *emin &= 0xFFFF ;
672
- *emax &= 0xFFFF ;
673
- *dValue &= 0xFFFF ;
671
+ *emin = static_cast < int16_t >(*emin) ;
672
+ *emax = static_cast < int16_t >(*emax) ;
673
+ *dValue = static_cast < int16_t >(*dValue) ;
674
674
break ;
675
675
case 1 :
676
- *emin &= 0xFF ;
677
- *emax &= 0xFF ;
678
- *dValue &= 0xFF ;
676
+ *emin = static_cast < int8_t >(*emin) ;
677
+ *emax = static_cast < int8_t >(*emax) ;
678
+ *dValue = static_cast < int8_t >(*dValue) ;
679
679
break ;
680
680
default :
681
681
break ;
You can’t perform that action at this time.
0 commit comments