winsock_strerror fix

Поиск
Список
Период
Сортировка
Искать

winsock_strerror fix

От:
Gerhard Häring <haering_python@gmx.de>
Дата:
Вложения:
winsock_strerror crashed on me. This fixes a line of code that looks
cleverer than it actually is ;-) Braces are good for you :-)

Gerhard
-- 
mail:   gerhard  bigfoot  de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

Re: winsock_strerror fix

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Gerhard =?iso-8859-1?Q?H=E4ring?=  writes:
> winsock_strerror crashed on me. This fixes a line of code that looks
> cleverer than it actually is ;-) Braces are good for you :-)

Good catch ... thanks!

			regards, tom lane

Re: winsock_strerror fix

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

Patch applied.  Thanks.

> winsock_strerror crashed on me. This fixes a line of code that looks
> cleverer than it actually is ;-) Braces are good for you :-)
> 
> Gerhard
> -- 
> mail:   gerhard  bigfoot  de       registered Linux user #64239
> web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
> public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
> reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
FAQ