Article View: comp.editors
Article #3013Re: JOE 1.0.12 - Blurb
From: Thomas Wolff
Date: Fri, 26 Aug 1994 10:53
Date: Fri, 26 Aug 1994 10:53
19 lines
1494 bytes
1494 bytes
diamond@jrd.dec.com (Norman Diamond) writes:
: In article <Cv4GDy.GMr@world.std.com> jhallen@world.std.com (Joseph H Allen) writes:
: >unsigned short a=1024;
: >unsigned short b=1024;
: >int c=311;
: >char *d="Hello there";
: >main() { printf("%x %x\n",d+c,d+a-(b-c)); }
: >The fix for JOE is to change the two 'unsigned short's in the file b.h to
: >'int's. This is truly a bizzare problem.
: The correct fix is to change the two '%x' conversions to '%hx' conversions.
: %x requires an unsigned int argument; %hx requires an unsigned short argument.
In cases like this I'd say the correct fix is to finally dispose of
that junk language "C".
Sorry - I could not resist once again. No replies necessary.
Thomas Wolff@inf.fu-berlin.de
Technical Details
Message-ID:
<77XRBNJL@math.fu-berlin.de>Path:
arc1-ca.pugleaf.net!wupost!news.utdallas.edu!corpgate!bnrgate!nott!torn!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!math.fu-berlin.de!wolffReferences:
<Cur3x5.A95@world.std.com> <Cv0B4q.EDu@world.std.com> <Cv1o5M.2GC@world.std.com> <Cv4GDy.GMr@world.std.com> <33kfu1$eff@usenet.pa.dec.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors,alt.sources,comp.misc,comp.unix.misc,comp.mail.misc,comp.unix.admin Path: arc1-ca.pugleaf.net!wupost!news.utdallas.edu!corpgate!bnrgate!nott!torn!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!math.fu-berlin.de!wolff From: wolff@inf.fu-berlin.de (Thomas Wolff) Subject: Re: JOE 1.0.12 - Blurb Message-ID: <77XRBNJL@math.fu-berlin.de> Sender: news@math.fu-berlin.de (Math Department) Nntp-Posting-Host: umlaut.inf.fu-berlin.de Organization: Free University of Berlin, Germany References: <Cur3x5.A95@world.std.com> <Cv0B4q.EDu@world.std.com> <Cv1o5M.2GC@world.std.com> <Cv4GDy.GMr@world.std.com> <33kfu1$eff@usenet.pa.dec.com> Distribution: inet Date: Fri, 26 Aug 1994 10:53:36 GMT Lines: 19