Re: Large negative pressures

2019-08-09 Thread Thiago Macieira
On Wednesday, 7 August 2019 10:19:01 PDT Linus Torvalds wrote: > Again, truncation of long to int isn't undefined behavior or overflow. > It's just a value truncation. Strictly speaking, it's defined only if the result fits. Otherwise, the C standard says it's implementation defined what

Re: Large negative pressures

2019-08-09 Thread Thiago Macieira
On Wednesday, 7 August 2019 09:31:35 PDT Linus Torvalds wrote: > > 2) Make pressure_t (and related variable) int64_t, > > Absolutely not. See above. That would be entirely crazy. Unless you want to use Subsurface to calculate a dive into the core of the Sun (pressure there is estimated at

Typo in CNS calculation

2019-08-09 Thread Robert Helling
Willem, could you please have a look at the final computation in static double calculate_cns_dive(const struct dive *dive) in divelist.c It seems to me that the first minus in cns += (double)t / ((double)cns_table[j][SINGLE_EXP] - ((double)po2i - (double)cns_table[j][PO2VAL])

Re: Facebook and Subsurface

2019-08-09 Thread James Cialdea
Twitter? I must admit that I am not an active user of Twitter, but that and Instagram are what I see people trending towards in the Northeast US. On Mon, Jul 29, 2019, 8:38 PM Dirk Hohndel wrote: > With Google+ gone and RSS feeds a thing of the past, I wonder how people > get updates for