shithub: rgbds

Download patch

ref: 92f2055a6c3328a101e2560d26c75fdc4fe1f8be
parent: be9b1198e940ed36c95778d30099a11cbf803860
author: ISSOtm <[email protected]>
date: Sun Oct 4 21:53:35 EDT 2020

Fix implicit cast between `enum`s

This caused `make develop` to fail

--- a/src/link/patch.c
+++ b/src/link/patch.c
@@ -434,7 +434,7 @@
 	while (assert) {
 		int32_t value = computeRPNExpr(&assert->patch,
 			(struct Symbol const * const *)assert->fileSymbols);
-		enum AssertionType type = assert->patch.type;
+		enum AssertionType type = (enum AssertionType)assert->patch.type;
 
 		if (!isError && !value) {
 			switch (type) {