tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: int vs. long in test(1)



On Thu, 19 Jun 2008, Thomas Klausner wrote:
> sh(1)'s test (-current/amd64) doesn't deal with big numbers (> MAXINT)
  [...]
> Do we want to convert the code to use strtoimax() and return a long
> (with checks) or even something bigger?

I think it would make sense to use intmax_t.  We already do that for
the integers in shell arithmatic with the $((...)) syntax.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index