Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Packages/MIES/MIES_Utilities_Checks.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -211,23 +211,23 @@ threadsafe Function IsFloatingPointWave(WAVE wv)

variable type = WaveType(wv)

return (type & IGOR_TYPE_32BIT_FLOAT) || (type & IGOR_TYPE_64BIT_FLOAT)
return (type & IGOR_TYPE_32BIT_FLOAT) == IGOR_TYPE_32BIT_FLOAT || (type & IGOR_TYPE_64BIT_FLOAT) == IGOR_TYPE_64BIT_FLOAT
End

/// @brief Return 1 if the wave is a double (64bit) precision floating point wave
///
/// UTF_NOINSTRUMENTATION
threadsafe Function IsDoubleFloatingPointWave(WAVE wv)

return WaveType(wv) & IGOR_TYPE_64BIT_FLOAT
return (WaveType(wv) & IGOR_TYPE_64BIT_FLOAT) == IGOR_TYPE_64BIT_FLOAT
End

/// @brief Return 1 if the wave is a single (32bit) precision floating point wave
///
/// UTF_NOINSTRUMENTATION
threadsafe Function IsSingleFloatingPointWave(WAVE wv)

return WaveType(wv) & IGOR_TYPE_32BIT_FLOAT
return (WaveType(wv) & IGOR_TYPE_32BIT_FLOAT) == IGOR_TYPE_32BIT_FLOAT
End

/// @brief Return 1 if the wave is a global wave (not a null wave and not a free wave)
Expand All @@ -239,7 +239,7 @@ End
/// @brief Return 1 if the wave is a complex wave
threadsafe Function IsComplexWave(WAVE wv)

return WaveType(wv) & IGOR_TYPE_COMPLEX
return (WaveType(wv) & IGOR_TYPE_COMPLEX) == IGOR_TYPE_COMPLEX
End

/// @brief Return true if wv is a free wave, false otherwise
Expand Down Expand Up @@ -321,7 +321,7 @@ Function StringEndsWith(string str, string suffix)
return 0
endif

pos = strsearch(str, suffix, Inf, 1)
pos = strsearch(str, suffix, Inf, 3)
if(pos == -1)
return 0
endif
Expand Down
Loading
Loading