Re: [Bug-apl] cast from pointer to smaller type 'int'

2017-09-11 Thread Juergen Sauermann
Hi Xiao-Yong, I see. In this particular case the pthread_t is only used to identify a thread and to distinguish it from other threads for debugging purposes. So as long as the compiler does not complain about the cast everything is fine. Cast to void * instea

Re: [Bug-apl] cast from pointer to smaller type 'int'

2017-09-11 Thread Xiao-Yong Jin
I don't think there is a portable way of printing a variable of type pthread_t. It could be a struct, depending on the implementation. static_cast is alright, but may not be useful in the future. > On Sep 11, 2017, at 1:08 PM, Juergen Sauermann > wrote: > > Hi Xiao-Yong, > > thanks, maybe

Re: [Bug-apl] Typo in power operator )help description

2017-09-11 Thread Juergen Sauermann
Hi Fred, thanks, fixed in SVN 1011. /// Jürgen On 09/10/2017 11:29 PM, Frederick Pitts wrote: Hello all, With svn 1010, )help ⍣ dyadic operator: Z ← (F ⍣ G) B (Power Operator) repeat G times: B ← F B

Re: [Bug-apl] cast from pointer to smaller type 'int'

2017-09-11 Thread Juergen Sauermann
Hi Xiao-Yong, thanks, maybe fixed in SVN 1011. Problem with that error is that the casted type is not a pointer, at least on my machine. /// Jürgen On 09/11/2017 06:55 PM, Xiao-Yong Jin wrote: At revision 1010 Thread_context.

[Bug-apl] cast from pointer to smaller type 'int'

2017-09-11 Thread Xiao-Yong Jin
At revision 1010 Thread_context.cc:72:65: error: cast from pointer to smaller type 'int' loses information out << "thread #" << setw(2) << N << ":" << setw(16) << int(thread)