<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">np.abs(np.int64(-9223372036854775808))  -&gt;  -9223372036854775808</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="np.abs(np.int64(-9223372036854775808))  # -&gt; -9223372036854775808"><pre class="notranslate"><span class="pl-s1">np</span>.<span class="pl-en">abs</span>(<span class="pl-s1">np</span>.<span class="pl-en">int64</span>(<span class="pl-c1">-</span><span class="pl-c1">9223372036854775808</span>))  <span class="pl-c"># -&gt; -9223372036854775808</span></pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.23.0 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 07:03:09) [Clang 13.0.1 ]</p>
<h3 dir="auto">Context for the issue:</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto">Python:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [117]: abs(-2147483646)
Out[117]: 2147483646

In [118]: abs(-2147483647)
Out[118]: 2147483647

In [119]: abs(-2147483648)
Out[119]: 2147483648L

In [120]: abs(-2147483649)
Out[120]: 2147483649L

In [121]: abs(-2147483650)
Out[121]: 2147483650L"><pre class="notranslate"><code class="notranslate">In [117]: abs(-2147483646)
Out[117]: 2147483646

In [118]: abs(-2147483647)
Out[118]: 2147483647

In [119]: abs(-2147483648)
Out[119]: 2147483648L

In [120]: abs(-2147483649)
Out[120]: 2147483649L

In [121]: abs(-2147483650)
Out[121]: 2147483650L
</code></pre></div>
<p dir="auto">NumPy:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [93]: absolute(array([-2147483646]))
Out[93]: array([2147483646])

In [94]: absolute(array([-2147483647]))
Out[94]: array([2147483647])

In [95]: absolute(array([-2147483648]))
Out[95]: array([-2147483648])

In [96]: absolute(array([-2147483649]))
Out[96]: array([2147483649], dtype=int64)

In [97]: absolute(array([-2147483650]))
Out[97]: array([2147483650], dtype=int64)"><pre class="notranslate"><code class="notranslate">In [93]: absolute(array([-2147483646]))
Out[93]: array([2147483646])

In [94]: absolute(array([-2147483647]))
Out[94]: array([2147483647])

In [95]: absolute(array([-2147483648]))
Out[95]: array([-2147483648])

In [96]: absolute(array([-2147483649]))
Out[96]: array([2147483649], dtype=int64)

In [97]: absolute(array([-2147483650]))
Out[97]: array([2147483650], dtype=int64)
</code></pre></div>
<p dir="auto"><a href="http://stackoverflow.com/q/11243014/125507" rel="nofollow">In C this is undefined</a> because abs() returns an int and there's no +2147483648, but NumPy should convert to int64?  and then <code class="notranslate">absolute(array(-2**63))</code> should convert to object array with longs instead of returning -9223372036854775808?</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7718582" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/593" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/593/hovercard" href="https://github.com/numpy/numpy/issues/593">#593</a>?</p>