Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
49eb5662
Commit
49eb5662
authored
Feb 27, 2003
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
e642a710
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/lib/rt/src/rt_ndc.c
src/lib/rt/src/rt_ndc.c
+6
-4
No files found.
src/lib/rt/src/rt_ndc.c
View file @
49eb5662
...
...
@@ -24,6 +24,7 @@
#include "rt_ndc.h"
#include "rt_ndc_msg.h"
/* Vax f-float on a little endian machine.
...
...
@@ -1044,11 +1045,12 @@ ndc_ConvertRemoteToNativeTable (
}
else
{
cap
=
&
ccp
->
attr
[
raidx
];
/* Pointers are only handled correctly for a single pointer, not arrays.
* See, vol_AttributeToAddress. Set private for all other cases.
/** @note Pointers are only handled correctly for a single pointer,
* not arrays. See, vol_AttributeToAddress. Set private for all other
* cases.
* It's quite tricky to find out if it's a single array element. Let's
* hope that the size has the exact size of one element. Maybe we should
* add a flag to the attribute reference.
* add a flag to the attribute reference
that indicates single array element
.
*/
adef
=
cap
->
flags
;
if
(
!
first
||
(
adef
.
b
.
array
&&
size
>
ap
->
size
/
ap
->
elem
))
...
...
@@ -1068,7 +1070,7 @@ ndc_ConvertRemoteToNativeTable (
idx
=
(
narp
->
Offset
-
ap
->
offs
)
/
(
ap
->
size
/
ap
->
elem
);
/* Calm down, the convert routine will only use the source if relem > 0 */
relem
=
cap
->
elem
-
(
idx
+
1
)
;
relem
=
cap
->
elem
-
idx
;
}
else
relem
=
cap
->
elem
;
...
...
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