Ticket #407 (new defect)

Opened 8 years ago

wrong parser called in src/seismic_processing/eqassemble/eqassemble.c

Reported by: baker Owned by: somebody
Priority: minor Milestone: All Platforms
Component: ALL modules Version: 7.8
Keywords: eqassemble Cc:

Description

eqassemble.c parses HypCheckInterval? as a double instead of as an int:

icc -D_BSD_SOURCE -m32 -Dlinux -D__i386 -D_LINUX -D_INTEL -D_USE_SCHED  -D_USE_PTHREADS -D_USE_TERMIOS -I/opt/earthworm/earthworm-7.6-5880/include -no-gcc -g -O0 -Wcheck -Wformat -check=stack,uninit -traceback -m32 -Dlinux -D__i386 -D_LINUX -D_INTEL -D_USE_SCHED  -D_USE_PTHREADS -D_USE_TERMIOS -I/opt/earthworm/earthworm-7.6-5880/include  -c -o eqassemble.o eqassemble.c

eqassemble.c(1507): warning #2259: non-pointer conversion from "double" to "int" may lose significant bits
                  HypCheckInterval = k_val();
                                   ^

Here's the fix:

--- src/seismic_processing/eqassemble/eqassemble.c
+++ src/seismic_processing/eqassemble/eqassemble.c      
@@ -1506,3 +1506,3 @@
             else if( k_its("HypCheckInterval") )
-                HypCheckInterval = k_val();
+                HypCheckInterval = k_int();

Note: See TracTickets for help on using tickets.