Rename GET_SET_KEY operator in SAFE_GET_KEY operator

This commit is contained in:
Patrick Pelissier committed 2021-10-30 23:57:50 +02:00
1 parent 6b064870f5
commit a9fc7e15f8
8 files changed
+13 -12

No files matched your search

+2 -2
View File
@@ -226,11 +226,11 @@ void test(int select_test, int index,
break;
#endif
#if M_TEST_METHOD_P(GET_SET_KEY, CONT_OPL)
#if M_TEST_METHOD_P(SAFE_GET_KEY, CONT_OPL)
case 14:
// To rework for dict
index = (1 + (c1.size() < 1000000)) * (index % ( c1.size() + 1) );
M_CALL_SET(M_GET_OPLIST CONT_OPL, b0, *M_CALL_GET_SET_KEY(CONT_OPL, c0, index));
M_CALL_SET(M_GET_OPLIST CONT_OPL, b0, *M_CALL_SAFE_GET_KEY(CONT_OPL, c0, index));
#ifndef HAVE_GET_KEY_THROUGH_FIND
if ((size_t) index >= c1.size() ) {
c1.resize(index+1);