Skip to content

Commit

Permalink
Merge pull request #171 from saxbophone/develop
Browse files Browse the repository at this point in the history
v0.26.1 - Minimum file format version bugfix
  • Loading branch information
saxbophone authored Feb 7, 2017
2 parents 97488a0 + 77eb4cf commit ec94969
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# begin basic metadata
cmake_minimum_required(VERSION 3.0)

project(sxbp VERSION 0.26.0 LANGUAGES C)
project(sxbp VERSION 0.26.1 LANGUAGES C)

# set default C standard to use (C99) if not already set
if(NOT DEFINED LIBSXBP_C_STANDARD)
Expand Down
5 changes: 3 additions & 2 deletions sxbp/serialise.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ sxbp_serialise_result_t sxbp_load_spiral(
.minor = load_uint16_t(&buffer, 6),
.patch = load_uint16_t(&buffer, 8),
};
// we don't accept anything less than v0.25.0, so the min is v0.25.0
sxbp_version_t min_version = { .major = 0, .minor = 25, .patch = 0, };
// we don't accept anything less than v0.26.0, so the min is v0.26.0
// TODO: Add this as a library constant - to add in next minor release
sxbp_version_t min_version = { .major = 0, .minor = 26, .patch = 0, };
// check for version compatibility
if(sxbp_version_less_than(buffer_version, min_version)) {
// check failed
Expand Down

0 comments on commit ec94969

Please sign in to comment.