|
From: Paul F. <fer...@gm...> - 2021-03-05 11:35:48
|
Hi Alexander, On Fri, Mar 05, 2021 at 01:52:55PM +0300, Alexander Gabitov via OpenOCD-devel wrote: > This is the common mistake! Unsigned types was added for another reason to > standart. But than their sense was perverted and many programmers start use them > for values that cant be negative. But C standart has integer promoution — all > arifmetics usually done in int. Just try to change it back to unsigned (in this > function) and you will need several type casts. How about size_t type then? -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |