Skip to content

Commit 13fe25c

Browse files
committed
chore: Bump OSX compiler version
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent c427a1d commit 13fe25c

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
include:
21-
- os: "macos-13"
21+
# - os: "macos-13"
2222
- os: "macos-14"
2323
fail-fast: false
2424

src/util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ namespace cmcpp
2424
return ValType::Variant;
2525
case ValType::Result:
2626
return ValType::Variant;
27+
default:
28+
return t;
2729
}
28-
return t;
2930
}
3031

3132
bool convert_int_to_bool(uint8_t i)

test/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ TEST_CASE("Float")
106106
flat_v = lower_flat(*cx, std::numeric_limits<double>::infinity());
107107
b = lift_flat<float64_t>(*cx, flat_v);
108108
CHECK(std::isnan(b));
109+
110+
using FloatTuple = tuple_t<float32_t, float64_t>;
111+
FloatTuple ft = {42.0, 43.0};
112+
auto flat_ft = lower_flat(*cx, ft);
113+
auto ft2 = lift_flat<FloatTuple>(*cx, flat_ft);
114+
CHECK(ft == ft2);
109115
}
110116

111117
const char *const hw = "hello World!";

0 commit comments

Comments
 (0)