Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
83237f87
Commit
83237f87
authored
15 years ago
by
James Cook
Browse files
Options
Downloads
Patches
Plain Diff
Allow large paramblocks by converting mEnclosingBlockOffset to U16, needed for
location_input.xml
parent
67c832d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llxuixml/llinitparam.cpp
+1
-1
1 addition, 1 deletion
indra/llxuixml/llinitparam.cpp
indra/llxuixml/llinitparam.h
+2
-2
2 additions, 2 deletions
indra/llxuixml/llinitparam.h
with
3 additions
and
3 deletions
indra/llxuixml/llinitparam.cpp
+
1
−
1
View file @
83237f87
...
@@ -46,7 +46,7 @@ namespace LLInitParam
...
@@ -46,7 +46,7 @@ namespace LLInitParam
{
{
const
U8
*
my_addr
=
reinterpret_cast
<
const
U8
*>
(
this
);
const
U8
*
my_addr
=
reinterpret_cast
<
const
U8
*>
(
this
);
const
U8
*
block_addr
=
reinterpret_cast
<
const
U8
*>
(
enclosing_block
);
const
U8
*
block_addr
=
reinterpret_cast
<
const
U8
*>
(
enclosing_block
);
mEnclosingBlockOffset
=
(
S
16
)(
block
_addr
-
my
_addr
);
mEnclosingBlockOffset
=
(
U
16
)(
my
_addr
-
block
_addr
);
}
}
//
//
...
...
This diff is collapsed.
Click to expand it.
indra/llxuixml/llinitparam.h
+
2
−
2
View file @
83237f87
...
@@ -300,14 +300,14 @@ namespace LLInitParam
...
@@ -300,14 +300,14 @@ namespace LLInitParam
const
U8
*
my_addr
=
reinterpret_cast
<
const
U8
*>
(
this
);
const
U8
*
my_addr
=
reinterpret_cast
<
const
U8
*>
(
this
);
// get address of enclosing BLOCK class using stored offset to enclosing BaseBlock class
// get address of enclosing BLOCK class using stored offset to enclosing BaseBlock class
return
*
const_cast
<
BaseBlock
*>
(
return
*
const_cast
<
BaseBlock
*>
(
reinterpret_cast
<
const
BaseBlock
*>
(
my_addr
+
(
ptrdiff_t
)
mEnclosingBlockOffset
));
reinterpret_cast
<
const
BaseBlock
*>
(
my_addr
-
(
ptrdiff_t
)
mEnclosingBlockOffset
));
}
}
private
:
private
:
friend
class
BaseBlock
;
friend
class
BaseBlock
;
bool
mIsProvided
;
bool
mIsProvided
;
S
16
mEnclosingBlockOffset
;
U
16
mEnclosingBlockOffset
;
};
};
// various callbacks and constraints associated with an individual param
// various callbacks and constraints associated with an individual param
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment