Skip to content

Commit 23bfcae

Browse files
committed
fixup! Switch to FieldData get_field
1 parent 8def904 commit 23bfcae

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/src/segy.c

+4-6
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,8 @@ void ieee2ibm( void* to, const void* from ) {
223223
}
224224

225225
/*
226-
Lookup table for field data type. All values not explicitly set are 0.
227-
Datatype enumeration is defined incrementally with 1 as the base.
228-
Thus, fields with undefined type will be assigned datatype 0.
226+
Lookup table for segy field data types. Types are defined in the SEGY_FORMAT enum.
227+
All values not explicitly set are 0 which is undefined in the SEGY_FORMAT.
229228
*/
230229
static uint8_t tr_field_type[SEGY_TRACE_HEADER_SIZE] = {
231230
[SEGY_TR_SEQ_LINE ] = SEGY_SIGNED_INTEGER_4_BYTE,
@@ -326,9 +325,8 @@ static uint8_t tr_field_type[SEGY_TRACE_HEADER_SIZE] = {
326325
#define HEADER_SIZE SEGY_TEXT_HEADER_SIZE
327326

328327
/*
329-
Lookup table for binary header data type. All values not explicitly set are 0.
330-
Datatype enumeration is defined incrementally with 1 as the base.
331-
Thus, fields with undefined type will be assigned datatype 0.
328+
Lookup table for segy binary field data types. Types are defined in the SEGY_FORMAT enum.
329+
All values not explicitly set are 0 which is undefined in the SEGY_FORMAT.
332330
*/
333331
static uint8_t bin_field_type[SEGY_BINARY_HEADER_SIZE] = {
334332
[- HEADER_SIZE + SEGY_BIN_JOB_ID ] = SEGY_SIGNED_INTEGER_4_BYTE,

0 commit comments

Comments
 (0)