浏览代码

Reverted comment change in previous commit

Sam Lantinga 5 年之前
父节点
当前提交
48989e2a87
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/video/SDL_surface.c

+ 3 - 2
src/video/SDL_surface.c

@@ -28,8 +28,9 @@
 #include "SDL_yuv_c.h"
 #include "SDL_yuv_c.h"
 
 
 
 
-/* Check to make sure we can safely check multiplication of surface w and pitch and it won't overflow Sint64 */
-SDL_COMPILE_TIME_ASSERT(surface_size_assumptions, sizeof(int) == sizeof(Sint32));
+/* Check to make sure we can safely check multiplication of surface w and pitch and it won't overflow size_t */
+SDL_COMPILE_TIME_ASSERT(surface_size_assumptions,
+    sizeof(int) == sizeof(Sint32) && sizeof(size_t) >= sizeof(Sint32));
 
 
 /* Public routines */
 /* Public routines */