Skip to content

Commit

Permalink
Fix GRAPHENE_CHECK_VERSION
Browse files Browse the repository at this point in the history
The test is backward. (unfortunately, I spread that mistake in virgl too!)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
  • Loading branch information
elmarco committed May 15, 2024
1 parent d03fb3d commit 65584ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/graphene-version-macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
GRAPHENE_MICRO_VERSION)

#define GRAPHENE_CHECK_VERSION(major,minor,micro) \
((major) > GRAPHENE_MAJOR_VERSION || \
(major) == GRAPHENE_MAJOR_VERSION && (minor) > GRAPHENE_MINOR_VERSION || \
(major) == GRAPHENE_MAJOR_VERSION && (minor) == GRAPHENE_MINOR_VERSION && (micro) >= GRAPHENE_MICRO_VERSION)
(GRAPHENE_MAJOR_VERSION > (major) || \
GRAPHENE_MAJOR_VERSION == (major) && GRAPHENE_MINOR_VERSION > (minor) || \
GRAPHENE_MAJOR_VERSION == (major) && GRAPHENE_MINOR_VERSION == (minor) && GRAPHENE_MICRO_VERSION >= (micro))

/* evaluates to the current stable release; for development cycles
* this means the next stable target.
Expand Down

0 comments on commit 65584ba

Please sign in to comment.