aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/vasp/source')
-rw-r--r--externals/grill/vasp/source/obj_imm.cpp2
-rw-r--r--externals/grill/vasp/source/obj_part.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/vasp/source/obj_imm.cpp b/externals/grill/vasp/source/obj_imm.cpp
index 1c324e37..5b98a590 100644
--- a/externals/grill/vasp/source/obj_imm.cpp
+++ b/externals/grill/vasp/source/obj_imm.cpp
@@ -84,7 +84,7 @@ public:
S *dst = imm.Pointer();
const S *src = buf->Pointer();
register int i;
- _DE_LOOP(i,len, ( *(dst++) = *src,src += chns ) )
+ _DE_LOOP(i,len, ( dst[i] = *src,src += chns ) )
Vasp ret(len,Vasp::Ref(imm));
ToOutVasp(0,ret);
diff --git a/externals/grill/vasp/source/obj_part.cpp b/externals/grill/vasp/source/obj_part.cpp
index 2a12536d..2e7044d0 100644
--- a/externals/grill/vasp/source/obj_part.cpp
+++ b/externals/grill/vasp/source/obj_part.cpp
@@ -35,7 +35,7 @@ class vasp_part:
public:
vasp_part(I argc,t_atom *argv):
- part(NULL),parts(0)
+ parts(0),part(NULL)
{
m_part(argc,argv);
@@ -81,7 +81,7 @@ public:
return;
}
- I fr = ref.Frames(),o = 0,f = 0;
+ I fr = ref.Frames(),o = 0;
for(I i = 0; i < parts && (fr < 0 || fr); ++i) {
I p = part[i];
if(fr >= 0) { p = min(p,fr); fr -= p; }