Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!sri-unix!husc6!mit-eddie!genrad!decvax!tektronix!reed!omen!caf From: caf@omen.UUCP Newsgroups: net.sources,comp.sys.ibm.pc Subject: Portability problems in ZMODEM (zm.c) Message-ID: <461@omen.UUCP> Date: Sat, 24-Jan-87 15:36:09 EST Article-I.D.: omen.461 Posted: Sat Jan 24 15:36:09 1987 Date-Received: Sun, 25-Jan-87 06:14:10 EST Organization: Omen Technology, Portland Lines: 17 Xref: watmath net.sources:6215 comp.sys.ibm.pc:1129 The recent ZMODEM sources posted to the net reveal that compilers have varying ideas about whether a hex constant is unsigned or not. The presence of a hex constant in calls to the UPDC32 macro resulted in a a 32 bit Tower of Babel syndrome, even among different versions of the Microsoft C compiler. The two lines in zm.c that contain the hex all one's preset should be changed as shown below. crc = 0xFFFFFFFF; crc = UPDC32(type, crc); crc = 0xFFFFFFFF; crc = UPDC32(c, crc); Chuck Forsberg WA7KGX Author of Pro-YAM communications Tools for PCDOS and Unix ...!tektronix!reed!omen!caf Omen Technology Inc "The High Reliability Software" Voice: 503-621-3406 17505-V Northwest Sauvie Island Road Portland OR 97231 TeleGodzilla BBS: 621-3746 2400/1200 CIS:70007,2304 Genie:CAF Source:TCE022 omen Any ACU 1200 1-503-621-3746 se:--se: link ord: Giznoid in:--in: uucp omen!/usr/spool/uucppublic/FILES lists all uucp-able files, updated hourly