Codechange: address CodeQL issue "Multiplication result converted to larger type" (#10306)
Most are very unlikely to ever be triggered in our codebase; two stand out: linkgraph and money cheat. Those, potentially, could wrap earlier than expected.
This commit is contained in:
@@ -170,7 +170,7 @@ public:
|
||||
* @param height The height of the buffer-to-be.
|
||||
* @return The size needed for the buffer.
|
||||
*/
|
||||
virtual int BufferSize(int width, int height) = 0;
|
||||
virtual size_t BufferSize(uint width, uint height) = 0;
|
||||
|
||||
/**
|
||||
* Called when the 8bpp palette is changed; you should redraw all pixels on the screen that
|
||||
|
||||
Reference in New Issue
Block a user