Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
blibs
blc_core
Commits
c19a32ad
Commit
c19a32ad
authored
Dec 22, 2016
by
Arnaud Blanchard
Browse files
Fix free dims if needed before relaocating new one
parent
52900043
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blc_array.cpp
View file @
c19a32ad
...
...
@@ -172,7 +172,6 @@ int blc_array::get_type_size(){
return
-
1
;
}
int
blc_array
::
sprint_dims
(
char
*
string
,
int
string_size
){
int
i
,
width
=
0
;
...
...
@@ -185,7 +184,6 @@ int blc_array::sprint_dims(char *string, int string_size){
return
width
;
}
int
blc_array
::
fprint_dims
(
FILE
*
file
)
const
{
int
i
,
width
=
0
;
...
...
@@ -197,7 +195,6 @@ int blc_array::fprint_dims(FILE *file)const {
return
width
;
}
void
blc_array
::
fscan_dims
(
FILE
*
file
){
blc_dim
*
dim
;
int
length
;
...
...
@@ -205,10 +202,8 @@ void blc_array::fscan_dims(FILE *file){
size
=
get_type_size
();
FSCANF
(
1
,
file
,
"%d"
,
&
length
);
dims
=
NULL
;
dims_nb
=
0
;
if
(
dims
)
FREE
(
dims
);
dims_nb
=
0
;
if
(
length
!=
0
){
do
{
...
...
Write
Preview
Supports
Markdown
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