Subj : src/xpdev/filewrap.h To : Git commit to main/sbbs/master From : Rob Swindell (on ChromeOS) Date : Sun Jun 11 2023 02:33 pm https://gitlab.synchro.net/main/sbbs/-/commit/c2291604b9b9a678e79167a4 Modified Files: src/xpdev/filewrap.h Log Message: Fix runtime errors when built with UBSan nopen.c:37:15: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' nopen.c:39:18: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' userdat.c:251:111: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' There are lot of 1<<31 macro definitions in this repo, so I'm expecting a lot more of this type of fix to be required to make UBSan happy. .