ObjFW  Diff

Differences From Artifact [6b6b3d5b5b]:

To Artifact [afd472834a]:

  • File src/OFConstantString.h — part of check-in [5171307598] at 2013-07-15 00:10:31 on branch trunk — OFConstantString: _cStringLength -> unsigned int.

    This field is actually only an unsigned int and not a size_t.

    It never caused trouble on 64-bit little endian machines as padding was
    added and so the most significant 32 bits were just 0. However, on 64-bit
    big endian machines like SPARC64, the most significant 32 bit come
    first, and thus the 32 bit size would treated as the 32 bit most
    significant bits of a 64 bit value.

    This also adds OpenBSD 5.3/SPARC64 to PLATFORMS.md. (user: js, size: 972) [annotate] [blame] [check-ins using]


29
30
31
32
33
34
35
36
37
38

/*!
 * @brief A class for storing constant strings using the \@"" literal.
 */
@interface OFConstantString: OFString
{
	char *_cString;
	size_t _cStringLength;
}
@end







|


29
30
31
32
33
34
35
36
37
38

/*!
 * @brief A class for storing constant strings using the \@"" literal.
 */
@interface OFConstantString: OFString
{
	char *_cString;
	unsigned int _cStringLength;
}
@end