Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
6b6e6f7c
Commit
6b6e6f7c
authored
Nov 19, 2013
by
Thomas Jahns
🤸
Browse files
Fix checksumming of grid masks.
parent
715e7ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
6b6e6f7c
...
...
@@ -4737,7 +4737,7 @@ gridUnpack(char * unpackBuffer, int unpackBufferSize,
gridP
->
mask
,
gridP
->
size
,
DATATYPE_UCHAR
,
context
);
serializeUnpack
(
unpackBuffer
,
unpackBufferSize
,
unpackBufferPos
,
&
d
,
1
,
DATATYPE_UINT32
,
context
);
xassert
(
cdiCheckSum
(
DATATYPE_
TXT
,
gridP
->
size
,
gridP
->
mask
)
==
d
);
xassert
(
cdiCheckSum
(
DATATYPE_
UCHAR
,
gridP
->
size
,
gridP
->
mask
)
==
d
);
}
if
(
memberMask
&
gridHasGMEMaskFlag
)
...
...
@@ -4748,7 +4748,7 @@ gridUnpack(char * unpackBuffer, int unpackBufferSize,
gridP
->
mask_gme
,
gridP
->
size
,
DATATYPE_UCHAR
,
context
);
serializeUnpack
(
unpackBuffer
,
unpackBufferSize
,
unpackBufferPos
,
&
d
,
1
,
DATATYPE_UINT32
,
context
);
xassert
(
cdiCheckSum
(
DATATYPE_
TXT
,
gridP
->
size
,
gridP
->
mask_gme
)
==
d
);
xassert
(
cdiCheckSum
(
DATATYPE_
UCHAR
,
gridP
->
size
,
gridP
->
mask_gme
)
==
d
);
}
}
...
...
@@ -4949,7 +4949,7 @@ gridPack(void * voidP, void * packBuffer, int packBufferSize,
xassert
((
size
=
gridP
->
size
));
serializePack
(
gridP
->
mask
,
size
,
DATATYPE_UCHAR
,
packBuffer
,
packBufferSize
,
packBufferPos
,
context
);
d
=
cdiCheckSum
(
DATATYPE_
TXT
,
size
,
gridP
->
mask
);
d
=
cdiCheckSum
(
DATATYPE_
UCHAR
,
size
,
gridP
->
mask
);
serializePack
(
&
d
,
1
,
DATATYPE_UINT32
,
packBuffer
,
packBufferSize
,
packBufferPos
,
context
);
}
...
...
@@ -4960,7 +4960,7 @@ gridPack(void * voidP, void * packBuffer, int packBufferSize,
serializePack
(
gridP
->
mask_gme
,
size
,
DATATYPE_UCHAR
,
packBuffer
,
packBufferSize
,
packBufferPos
,
context
);
d
=
cdiCheckSum
(
DATATYPE_
TXT
,
size
,
gridP
->
mask_gme
);
d
=
cdiCheckSum
(
DATATYPE_
UCHAR
,
size
,
gridP
->
mask_gme
);
serializePack
(
&
d
,
1
,
DATATYPE_UINT32
,
packBuffer
,
packBufferSize
,
packBufferPos
,
context
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment