File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
flang/include/flang/Common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ static inline bool MulOverflow(
7272  return  __builtin_mul_overflow (x, y, &result);
7373#else 
7474  //  Perform the unsigned multiplication on absolute values.
75-   const  std::uint64_t  ux{X  < 0  ? (0  - static_cast <std::uint64_t >(x))
75+   const  std::uint64_t  ux{x  < 0  ? (0  - static_cast <std::uint64_t >(x))
7676                               : static_cast <std::uint64_t >(x)};
7777  const  std::uint64_t  uy{y < 0  ? (0  - static_cast <std::uint64_t >(y))
7878                               : static_cast <std::uint64_t >(y)};
7979  const  std::uint64_t  uresult{ux * uy};
8080
8181  //  Convert to signed.
82-   const  bool  isNegative{ (x < 0 ) ^ (y < 0 )} ;
82+   const  bool  isNegative =  (x < 0 ) ^ (y < 0 );
8383  result = isNegative ? (0  - uresult) : uresult;
8484
8585  //  If any of the args was 0, result is 0 and no overflow occurs.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments