@@ -291,7 +291,7 @@ def type_info(np_type):
291291 return ret
292292 info_64 = np .finfo (np .float64 )
293293 if dt .kind == 'c' :
294- assert np_type is np .longcomplex
294+ assert np_type is np .clongdouble
295295 vals = (nmant , nexp , width / 2 )
296296 else :
297297 assert np_type is np .longdouble
@@ -319,7 +319,7 @@ def type_info(np_type):
319319 # Oh dear, we don't recognize the type information. Try some known types
320320 # and then give up. At this stage we're expecting exotic longdouble or
321321 # their complex equivalent.
322- if np_type not in (np .longdouble , np .longcomplex ) or width not in (16 , 32 ):
322+ if np_type not in (np .longdouble , np .clongdouble ) or width not in (16 , 32 ):
323323 raise FloatingError (f'We had not expected type { np_type } ' )
324324 if vals == (1 , 1 , 16 ) and on_powerpc () and _check_maxexp (np .longdouble , 1024 ):
325325 # double pair on PPC. The _check_nmant routine does not work for this
@@ -329,13 +329,13 @@ def type_info(np_type):
329329 # Got float64 despite everything
330330 pass
331331 elif _check_nmant (np .longdouble , 112 ) and _check_maxexp (np .longdouble , 16384 ):
332- # binary 128, but with some busted type information. np.longcomplex
332+ # binary 128, but with some busted type information. np.clongdouble
333333 # seems to break here too, so we need to use np.longdouble and
334334 # complexify
335335 two = np .longdouble (2 )
336336 # See: https://matthew-brett.github.io/pydagogue/floating_point.html
337337 max_val = (two ** 113 - 1 ) / (two ** 112 ) * two ** 16383
338- if np_type is np .longcomplex :
338+ if np_type is np .clongdouble :
339339 max_val += 0j
340340 ret = dict (
341341 min = - max_val ,
0 commit comments