Skip to content

Commit 7060950

Browse files
andreyaksenovsparr
andauthored
Replace bad arithmetic in tnt_select limit param example (#4455)
Co-authored-by: Clarence "Sparr" Risher <[email protected]>
1 parent e85d720 commit 7060950

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/connector/c.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ To display the results, the program uses functions in the
249249
}
250250
struct tnt_stream *tuple = tnt_object(NULL);
251251
tnt_object_format(tuple, "[%d]", 99999); /* tuple = search key */
252-
tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);
252+
tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);
253253
tnt_flush(tnt);
254254
struct tnt_reply reply; tnt_reply_init(&reply);
255255
tnt->read_reply(tnt, &reply);

locale/ru/LC_MESSAGES/book/connectors.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ msgid ""
19821982
" }\n"
19831983
" struct tnt_stream *tuple = tnt_object(NULL);\n"
19841984
" tnt_object_format(tuple, \"[%d]\", 99999); /* tuple = search key */\n"
1985-
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
1985+
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
19861986
" tnt_flush(tnt);\n"
19871987
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
19881988
" tnt->read_reply(tnt, &reply);\n"
@@ -2047,7 +2047,7 @@ msgstr ""
20472047
" }\n"
20482048
" struct tnt_stream *tuple = tnt_object(NULL);\n"
20492049
" tnt_object_format(tuple, \"[%d]\", 99999); /* кортеж tuple = ключ для поиска */\n"
2050-
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
2050+
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
20512051
" tnt_flush(tnt);\n"
20522052
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
20532053
" tnt->read_reply(tnt, &reply);\n"

locale/ru/LC_MESSAGES/book/connectors/c.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ msgid ""
374374
" }\n"
375375
" struct tnt_stream *tuple = tnt_object(NULL);\n"
376376
" tnt_object_format(tuple, \"[%d]\", 99999); /* tuple = search key */\n"
377-
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
377+
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
378378
" tnt_flush(tnt);\n"
379379
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
380380
" tnt->read_reply(tnt, &reply);\n"
@@ -439,7 +439,7 @@ msgstr ""
439439
" }\n"
440440
" struct tnt_stream *tuple = tnt_object(NULL);\n"
441441
" tnt_object_format(tuple, \"[%d]\", 99999); /* кортеж tuple = ключ для поиска */\n"
442-
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
442+
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
443443
" tnt_flush(tnt);\n"
444444
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
445445
" tnt->read_reply(tnt, &reply);\n"

0 commit comments

Comments
 (0)