summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/testrandom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testrandom.c b/tests/testrandom.c
index 3f6e4ce0..ab495cef 100644
--- a/tests/testrandom.c
+++ b/tests/testrandom.c
@@ -33,7 +33,7 @@ static gsize n_rtl_words;
static const char *
random_word (PangoDirection dir)
{
- switch (dir)
+ switch ((int)dir)
{
case PANGO_DIRECTION_LTR:
return ltr_words[g_test_rand_int_range (0, n_ltr_words)];