Skip to content

Commit 1f13ba8

Browse files
committed
RDF 1.4.2
1 parent 3c47717 commit 1f13ba8

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RDF files are structured as following:
99

1010
All offsets are relative to the file start. All sizes are in bytes. There is no requirement to put the chunk index at the end, but it's convenient for tools which generate RDF files so we expect the index to be at the end. Structures are assumed to be "C" packed.
1111

12-
*must*, *should*, etc. is used in accordance with [RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119)
12+
*must*, *should*, etc. is used in accordance with RFC 2119.
1313

1414
![RDF overview](rdf.svg)
1515

rdf/inc/amdrdf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
(static_cast<std::uint32_t>(minor) << 12) | \
2727
(static_cast<std::uint32_t>(patch)))
2828

29-
#define RDF_INTERFACE_VERSION RDF_MAKE_VERSION(1, 3, 0)
29+
#define RDF_INTERFACE_VERSION RDF_MAKE_VERSION(1, 4, 0)
3030

3131
extern "C" {
3232
struct rdfChunkFile;

rdf/src/amdrdf.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ namespace internal
5757
*/
5858
bool CheckIsInSystemSizeRange(std::int64_t v)
5959
{
60-
if (sizeof(size_t) == 4) {
60+
constexpr bool size_t_is_4 = sizeof(size_t) == 4;
61+
if (size_t_is_4) {
6162
return v <= static_cast<std::int64_t>(std::numeric_limits<std::uint32_t>::max());
6263
}
6364

@@ -972,6 +973,9 @@ namespace internal
972973
std::int64_t WriteImpl(const std::int64_t offset,
973974
const std::int64_t count, const void* buffer) override
974975
{
976+
(void)offset;
977+
(void)count;
978+
(void)buffer;
975979
assert(false);
976980
return 0;
977981
}

0 commit comments

Comments
 (0)