@@ -1851,7 +1851,7 @@ json_test_operation (json_test_ctx_t *ctx,
1851
1851
bson_t pipeline = BSON_INITIALIZER ;
1852
1852
mongoc_change_stream_destroy (ctx -> change_stream );
1853
1853
ctx -> change_stream = mongoc_collection_watch (c , & pipeline , NULL );
1854
- res = (op_error (operation ) == (bool ) ctx -> change_stream -> err .code );
1854
+ res = (op_error (operation ) == (0 != ctx -> change_stream -> err .code ) );
1855
1855
if (!res ) {
1856
1856
test_error ("expected error=%s, but actual error='%s'" ,
1857
1857
op_error (operation ) ? "true" : "false" ,
@@ -1879,7 +1879,7 @@ json_test_operation (json_test_ctx_t *ctx,
1879
1879
bson_t pipeline = BSON_INITIALIZER ;
1880
1880
mongoc_change_stream_destroy (ctx -> change_stream );
1881
1881
ctx -> change_stream = mongoc_database_watch (db , & pipeline , NULL );
1882
- res = (op_error (operation ) == (bool ) ctx -> change_stream -> err .code );
1882
+ res = (op_error (operation ) == (0 != ctx -> change_stream -> err .code ) );
1883
1883
if (!res ) {
1884
1884
test_error ("expected error=%s, but actual error='%s'" ,
1885
1885
op_error (operation ) ? "true" : "false" ,
@@ -1933,7 +1933,7 @@ json_test_operation (json_test_ctx_t *ctx,
1933
1933
bson_t pipeline = BSON_INITIALIZER ;
1934
1934
mongoc_change_stream_destroy (ctx -> change_stream );
1935
1935
ctx -> change_stream = mongoc_client_watch (c -> client , & pipeline , NULL );
1936
- res = (op_error (operation ) == (bool ) ctx -> change_stream -> err .code );
1936
+ res = (op_error (operation ) == (0 != ctx -> change_stream -> err .code ) );
1937
1937
if (!res ) {
1938
1938
test_error ("expected error=%s, but actual error='%s'" ,
1939
1939
op_error (operation ) ? "true" : "false" ,
0 commit comments