[tlbuild] proposed change to xdvi.c
Nelson H. F. Beebe
beebe at math.utah.edu
Tue Apr 17 16:39:21 CEST 2012
>> good catch, applied as r26011 (however, with long instead of double).
That works for IA-64, where we have (from my features-1.2.1 tests)
sizeof(char) = 1
sizeof(short) = 2
sizeof(int) = 4
sizeof(long) = 8
sizeof(long long) = 8
However, there may be other platforms where the alignment of 8-byte
boundary is needed by the X11 library, but sizeof(long) == 4. That is
why I intentionally used "double", which is guaranteed to be 8-byte
aligned on all byte-addressed systems.
No arithmetic is required, just addressing, so I think the type really
should be "double", not the system- and compiler-dependent "long".
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe at math.utah.edu -
- 155 S 1400 E RM 233 beebe at acm.org beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
More information about the tlbuild
mailing list