From 4181485b4ccdbc11bcef4c8525abc2d04bef1acf Mon Sep 17 00:00:00 2001 From: halx99 Date: Mon, 31 Aug 2020 14:50:33 +0800 Subject: [PATCH] fix compile issue --- cocos/base/etc2.cpp | 2 +- cocos/base/etc2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/base/etc2.cpp b/cocos/base/etc2.cpp index 39f8cb5f1f..5974e494f2 100644 --- a/cocos/base/etc2.cpp +++ b/cocos/base/etc2.cpp @@ -980,7 +980,7 @@ namespace { size_t outputDepthPitch); } -int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, size_t width, size_t height) +int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, etc2_uint32 width, etc2_uint32 height) { size_t outputRowPitch = 4 * width; size_t outputDepthPitch = outputRowPitch * height; diff --git a/cocos/base/etc2.h b/cocos/base/etc2.h index 1f8aab5c52..e5af9cf421 100644 --- a/cocos/base/etc2.h +++ b/cocos/base/etc2.h @@ -73,7 +73,7 @@ extern "C" { /// pixelsHeight /// pixelsWidth /// 0: success, -1: failed - int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, size_t width, size_t height); + int etc2_decode_image(int format, const etc2_byte* input, etc2_byte* output, etc2_uint32 width, etc2_uint32 height); #if defined(__cplusplus) }