From 9b3013d2f6e416f31610f3dc94c5ff8b44836463 Mon Sep 17 00:00:00 2001 From: emekoi Date: Sat, 9 Feb 2019 18:04:38 -0600 Subject: make @enumToInt work on union(enum) closes #1711 --- src/target.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/target.cpp') diff --git a/src/target.cpp b/src/target.cpp index cea7826313..5352a21826 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -9,6 +9,7 @@ #include "error.hpp" #include "target.hpp" #include "util.hpp" +#include "os.hpp" #include @@ -848,7 +849,7 @@ const char *target_lib_file_ext(ZigTarget *target, bool is_static, size_t versio if (is_static) { return ".a"; } else { - return buf_ptr(buf_sprintf(".so.%zu", version_major)); + return buf_ptr(buf_sprintf(".so.%" ZIG_PRI_usize, version_major)); } } } -- cgit v1.2.3