| От | Neil Conway |
|---|---|
| Тема | Re: cast pid_t to int when using *printf |
| Дата | |
| Msg-id | 1096022064.25688.676.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: cast pid_t to int when using *printf (Oliver Jowett <oliver@opencloud.com>) |
| Ответы |
Re: cast pid_t to int when using *printf
|
| Список | pgsql-patches |
On Fri, 2004-09-24 at 20:31, Oliver Jowett wrote: > pid_t on the Solaris/sparc system is a long (but both int and long are > 32 bits). Some experimentation shows that gcc is happy with a %ld format > specifier. But compiling the same code on a Linux/x86 system makes gcc > complain when applying %ld to pid_t, so we will need a cast there either > way. I guess it would be safest to use %ld and cast pid_t to long. Of course, this seems a little paranoid -- is there actually a system with sizeof(pid_t) != 4? -Neil
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера