-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/packages
#375Labels
p: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen tool
Description
We are doing an invalid cast to an integer from a pointer type. I think it was intended to be result.state = [dict[@"state"] integerValue];
I'm not sure why this passed on CI.
steps to reproduce:
./run_tests.sh -t objc_compilation_tests
error:
test_pigeon_ios(./pigeons/message.dart)
flutter_pigeon.UD0pma/pigeon.m:49:18: error: cast to smaller integer type 'int' from 'id _Nullable' [-Werror,-Wpointer-to-int-cast]
result.state = (int)dict[@"state"];
^~~~~~~~~~~~~~~~~~~
1 error generated.
cc @GaryQian
Metadata
Metadata
Assignees
Labels
p: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen tool