shithub: rgbds

Download patch

ref: d6a99981d6feede785cade9240c486cf6ba1b5aa
parent: 89917ef68884599e621f5e3e906bc19eb2387c4b
author: ISSOtm <[email protected]>
date: Thu Jan 16 17:31:24 EST 2020

Fix checkcodebase warnings

--- a/src/asm/constexpr.c
+++ b/src/asm/constexpr.c
@@ -69,7 +69,8 @@
 	if (!pSection)
 		yyerror("Section \"%s\" doesn't exist", tzSectionName);
 	else if (pSection->nBank == -1)
-		yyerror("Section \"%s\"'s bank is not known yet", tzSectionName);
+		yyerror("Section \"%s\"'s bank is not known yet",
+			tzSectionName);
 	else
 		constexpr_Number(expr, pSection->nBank);
 }
--- a/src/link/object.c
+++ b/src/link/object.c
@@ -62,7 +62,7 @@
 		 * however causes values larger than 127 to be too large when
 		 * shifted, potentially triggering undefined behavior.
 		 */
-		value |= (unsigned)byte << shift;
+		value |= (unsigned int)byte << shift;
 	}
 	return value;
 }