[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] cast from pointer to smaller type 'int'
From: |
Xiao-Yong Jin |
Subject: |
Re: [Bug-apl] cast from pointer to smaller type 'int' |
Date: |
Mon, 11 Sep 2017 13:38:15 -0500 |
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<int> is
alright, but may not be useful in the future.
> On Sep 11, 2017, at 1:08 PM, Juergen Sauermann <address@hidden> wrote:
>
> 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.cc:72:65: error: cast from pointer to smaller type 'int'
>> loses information
>> out << "thread #" << setw(2) << N << ":" << setw(16) << int(thread)
>>
>>
>>
>>
>
- [Bug-apl] cast from pointer to smaller type 'int', Xiao-Yong Jin, 2017/09/11
- Re: [Bug-apl] cast from pointer to smaller type 'int', Juergen Sauermann, 2017/09/11
- Re: [Bug-apl] cast from pointer to smaller type 'int',
Xiao-Yong Jin <=
- Re: [Bug-apl] cast from pointer to smaller type 'int', Juergen Sauermann, 2017/09/11
- Re: [Bug-apl] cast from pointer to smaller type 'int', Xiao-Yong Jin, 2017/09/19
- Re: [Bug-apl] cast from pointer to smaller type 'int', Juergen Sauermann, 2017/09/20
- Re: [Bug-apl] cast from pointer to smaller type 'int', Juergen Sauermann, 2017/09/20
- Re: [Bug-apl] cast from pointer to smaller type 'int', Xiao-Yong Jin, 2017/09/20
- Re: [Bug-apl] cast from pointer to smaller type 'int', Xiao-Yong Jin, 2017/09/20
- Re: [Bug-apl] cast from pointer to smaller type 'int', Juergen Sauermann, 2017/09/21
- Re: [Bug-apl] cast from pointer to smaller type 'int', Xiao-Yong Jin, 2017/09/20
- Re: [Bug-apl] cast from pointer to smaller type 'int', Juergen Sauermann, 2017/09/20