Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
c537196e
Commit
c537196e
authored
Aug 31, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed CE on 32-bit platforms
parent
130aed70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
queries.c
queries.c
+2
-2
structures.c
structures.c
+1
-1
No files found.
queries.c
View file @
c537196e
...
@@ -229,7 +229,7 @@ void tglq_query_error (long long id) {
...
@@ -229,7 +229,7 @@ void tglq_query_error (long long id) {
static
int
packed_buffer
[
MAX_PACKED_SIZE
/
4
];
static
int
packed_buffer
[
MAX_PACKED_SIZE
/
4
];
void
tglq_query_result
(
long
long
id
UU
)
{
void
tglq_query_result
(
long
long
id
UU
)
{
vlogprintf
(
E_DEBUG
,
"result for query #%lld. Size %ld bytes
\n
"
,
id
,
4
*
(
in_end
-
in_ptr
));
vlogprintf
(
E_DEBUG
,
"result for query #%lld. Size %ld bytes
\n
"
,
id
,
(
long
)
4
*
(
in_end
-
in_ptr
));
/*if (verbosity >= 4) {
/*if (verbosity >= 4) {
logprintf ( "result: ");
logprintf ( "result: ");
hexdump_in ();
hexdump_in ();
...
@@ -270,7 +270,7 @@ void tglq_query_result (long long id UU) {
...
@@ -270,7 +270,7 @@ void tglq_query_result (long long id UU) {
int
*
save
=
in_ptr
;
int
*
save
=
in_ptr
;
vlogprintf
(
E_DEBUG
,
"in_ptr = %p, end_ptr = %p
\n
"
,
in_ptr
,
in_end
);
vlogprintf
(
E_DEBUG
,
"in_ptr = %p, end_ptr = %p
\n
"
,
in_ptr
,
in_end
);
if
(
skip_type_any
(
q
->
methods
->
type
)
<
0
)
{
if
(
skip_type_any
(
q
->
methods
->
type
)
<
0
)
{
vlogprintf
(
E_ERROR
,
"Skipped %ld int out of %ld (type %s)
\n
"
,
in_ptr
-
save
,
in_end
-
save
,
q
->
methods
->
type
->
type
->
id
);
vlogprintf
(
E_ERROR
,
"Skipped %ld int out of %ld (type %s)
\n
"
,
(
long
)(
in_ptr
-
save
),
(
long
)(
in_end
-
save
)
,
q
->
methods
->
type
->
type
->
id
);
assert
(
0
);
assert
(
0
);
}
}
...
...
structures.c
View file @
c537196e
...
@@ -1178,7 +1178,7 @@ void tglf_fetch_encrypted_message (struct tgl_message *M) {
...
@@ -1178,7 +1178,7 @@ void tglf_fetch_encrypted_message (struct tgl_message *M) {
}
else
{
}
else
{
start
=
in_ptr
;
start
=
in_ptr
;
if
(
skip_type_any
(
TYPE_TO_PARAM
(
decrypted_message_action
))
<
0
)
{
if
(
skip_type_any
(
TYPE_TO_PARAM
(
decrypted_message_action
))
<
0
)
{
vlogprintf
(
E_ERROR
,
"Skipped %ld int out of %ld. Magic = 0x%08x
\n
"
,
in_ptr
-
start
,
in_end
-
start
,
*
start
);
vlogprintf
(
E_ERROR
,
"Skipped %ld int out of %ld. Magic = 0x%08x
\n
"
,
(
long
)(
in_ptr
-
start
),
(
long
)(
in_end
-
start
)
,
*
start
);
assert
(
0
);
assert
(
0
);
}
}
end
=
in_ptr
;
end
=
in_ptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment