Re: Win64 warnings about size_t
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Win64 warnings about size_t |
| Дата | |
| Msg-id | 1262373163.29407.4.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответ на | Re: Win64 warnings about size_t (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: Win64 warnings about size_t
|
| Список | pgsql-hackers |
On fre, 2010-01-01 at 20:01 +0100, Magnus Hagander wrote: > .\src\backend\utils\mmgr\aset.c(701): warning C4334: '<<' : result > of 32-bit shift implicitly converted to 64 bits (was 64-bit shift > intended?) > .\src\backend\utils\mmgr\aset.c(705): warning C4334: '<<' : result > of 32-bit shift implicitly converted to 64 bits (was 64-bit shift > intended?) > > Perhaps we need some casting there? This shouldn't be a problem for the same reason that casting size_t to int is not a problem in the PostgreSQL backend code, but perhaps writing 1L << ... would fix it.
В списке pgsql-hackers по дате отправления: