File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -624,7 +624,7 @@ static NRT_MemInfo *DPEXRT_MemInfo_fill(NRT_MemInfo *mi,
624
624
}
625
625
else if (!dest_is_float && value_is_float ) {
626
626
double * p = (double * )& value ;
627
- bc .i64_ = * p ;
627
+ bc .i64_ = ( int64_t ) * p ;
628
628
}
629
629
else {
630
630
bc .i64_ = value ;
@@ -638,7 +638,7 @@ static NRT_MemInfo *DPEXRT_MemInfo_fill(NRT_MemInfo *mi,
638
638
{
639
639
if (dest_is_float && value_is_float ) {
640
640
double * p = (double * )(& value );
641
- bc .f_ = * p ;
641
+ bc .f_ = ( float ) * p ;
642
642
}
643
643
else if (dest_is_float && !value_is_float ) {
644
644
// To stop warning: dereferencing type-punned pointer
@@ -648,7 +648,7 @@ static NRT_MemInfo *DPEXRT_MemInfo_fill(NRT_MemInfo *mi,
648
648
}
649
649
else if (!dest_is_float && value_is_float ) {
650
650
double * p = (double * )& value ;
651
- bc .i32_ = * p ;
651
+ bc .i32_ = ( int32_t ) * p ;
652
652
}
653
653
else {
654
654
bc .i32_ = (int32_t )value ;
@@ -665,7 +665,7 @@ static NRT_MemInfo *DPEXRT_MemInfo_fill(NRT_MemInfo *mi,
665
665
666
666
if (value_is_float ) {
667
667
double * p = (double * )& value ;
668
- bc .i16_ = * p ;
668
+ bc .i16_ = ( int16_t ) * p ;
669
669
}
670
670
else {
671
671
bc .i16_ = (int16_t )value ;
@@ -682,7 +682,7 @@ static NRT_MemInfo *DPEXRT_MemInfo_fill(NRT_MemInfo *mi,
682
682
683
683
if (value_is_float ) {
684
684
double * p = (double * )& value ;
685
- bc .i8_ = * p ;
685
+ bc .i8_ = ( int8_t ) * p ;
686
686
}
687
687
else {
688
688
bc .i8_ = (int8_t )value ;
You can’t perform that action at this time.
0 commit comments