Skip to content

Commit

Permalink
Replace bad arithmetic in tnt_select limit param example (#4455)
Browse files Browse the repository at this point in the history
Co-authored-by: Clarence "Sparr" Risher <[email protected]>
  • Loading branch information
andreyaksenov and sparr authored Aug 16, 2024
1 parent e85d720 commit 7060950
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/connector/c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ To display the results, the program uses functions in the
}
struct tnt_stream *tuple = tnt_object(NULL);
tnt_object_format(tuple, "[%d]", 99999); /* tuple = search key */
tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);
tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);
tnt_flush(tnt);
struct tnt_reply reply; tnt_reply_init(&reply);
tnt->read_reply(tnt, &reply);
Expand Down
4 changes: 2 additions & 2 deletions locale/ru/LC_MESSAGES/book/connectors.po
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ msgid ""
" }\n"
" struct tnt_stream *tuple = tnt_object(NULL);\n"
" tnt_object_format(tuple, \"[%d]\", 99999); /* tuple = search key */\n"
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
" tnt_flush(tnt);\n"
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
" tnt->read_reply(tnt, &reply);\n"
Expand Down Expand Up @@ -2047,7 +2047,7 @@ msgstr ""
" }\n"
" struct tnt_stream *tuple = tnt_object(NULL);\n"
" tnt_object_format(tuple, \"[%d]\", 99999); /* кортеж tuple = ключ для поиска */\n"
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
" tnt_flush(tnt);\n"
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
" tnt->read_reply(tnt, &reply);\n"
Expand Down
4 changes: 2 additions & 2 deletions locale/ru/LC_MESSAGES/book/connectors/c.po
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ msgid ""
" }\n"
" struct tnt_stream *tuple = tnt_object(NULL);\n"
" tnt_object_format(tuple, \"[%d]\", 99999); /* tuple = search key */\n"
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
" tnt_flush(tnt);\n"
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
" tnt->read_reply(tnt, &reply);\n"
Expand Down Expand Up @@ -439,7 +439,7 @@ msgstr ""
" }\n"
" struct tnt_stream *tuple = tnt_object(NULL);\n"
" tnt_object_format(tuple, \"[%d]\", 99999); /* кортеж tuple = ключ для поиска */\n"
" tnt_select(tnt, 999, 0, (2^32) - 1, 0, 0, tuple);\n"
" tnt_select(tnt, 999, 0, UINT32_MAX, 0, 0, tuple);\n"
" tnt_flush(tnt);\n"
" struct tnt_reply reply; tnt_reply_init(&reply);\n"
" tnt->read_reply(tnt, &reply);\n"
Expand Down

0 comments on commit 7060950

Please sign in to comment.