shithub: choc

Download patch

ref: bbefecc2580b07f0ba07c8a86dddad5ac9c45d44
parent: 243df30e086c28e5cbac69ecf717c9475e374219
author: David Carlier <[email protected]>
date: Sun Oct 21 03:12:39 EDT 2018

Update angle_t type.

Typically to avoid few overflows.

--- a/src/tables.h
+++ b/src/tables.h
@@ -78,7 +78,7 @@
 #define SLOPEBITS		11
 #define DBITS			(FRACBITS-SLOPEBITS)
 
-typedef unsigned angle_t;
+typedef unsigned int angle_t;
 
 
 // Effective size is 2049;