ObjFW  Check-in [5171307598]

Overview
Comment: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.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 517130759861cf0fb426263ab72355ba09b04bc6da499a77bdabbbeb413903c8
User & Date: js on 2013-07-15 00:10:31
Other Links: manifest | tags
Context
2013-07-15
21:04
exception.m: Fix wrong type size. check-in: 51beeb9808 user: js tags: trunk
00:10
OFConstantString: _cStringLength -> unsigned int. check-in: 5171307598 user: js tags: trunk
2013-07-14
23:12
configure.ac: Move h_errno / hstrerror check. check-in: 4ed4d32f48 user: js tags: trunk
Changes

Modified PLATFORMS.md from [84a97ee402] to [6c4213fbc6].

65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
  * Compilers: Clang 3.0, GCC 4.1.3 & 4.5.3
  * Runtimes: ObjFW


OpenBSD
-------

  * OS versions: 5.2
  * Architectures: PPC
  * Compilers: GCC 4.2.1
  * Runtimes: ObjFW


PlayStation Portable
--------------------








|
|







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
  * Compilers: Clang 3.0, GCC 4.1.3 & 4.5.3
  * Runtimes: ObjFW


OpenBSD
-------

  * OS versions: 5.2, 5.3
  * Architectures: PPC, SPARC64
  * Compilers: GCC 4.2.1
  * Runtimes: ObjFW


PlayStation Portable
--------------------

Modified src/OFConstantString.h from [6b6b3d5b5b] to [afd472834a].

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