Skip to content

Commit d8d8e39

Browse files
author
Dan Albert
committed
Define a backing type for ADataSpace.
This enum is used in the ABI for the SurfaceControl APIs, but that's not safe without a defined backing type. Bug: None Test: treehugger Change-Id: Ifa52f69abacc370e91fd9a358f24a011fdbf0322
1 parent 7f358de commit d8d8e39

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/nativewindow/include/android/data_space.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#define ANDROID_DATA_SPACE_H
3030

3131
#include <inttypes.h>
32+
#include <stdint.h>
3233

3334
#include <sys/cdefs.h>
3435

@@ -37,7 +38,7 @@ __BEGIN_DECLS
3738
/**
3839
* ADataSpace.
3940
*/
40-
enum ADataSpace {
41+
enum ADataSpace : int32_t {
4142
/**
4243
* Default-assumption data space, when not explicitly specified.
4344
*

0 commit comments

Comments
 (0)