The function zef_waitbar throws an error, if an integer is passed in as the first argument, as the deprecated datestr function cannot handle integers.
Steps to reproduce
Pass in an integer as the first argument, while updating the waitbar with a 3-argument call zef_waitbar(progress_ratio,waitbar handle,waitbar text), where progress_ratio is an integer type.
After a few iterations, the waitbar crashes.
Expected behavior
The waitbar should be able to handle integers as input. The first argument shold be converted to a double by the zef_waitbar function.
Context
Name
Value
Version
7ac852b94 Merge pull request #218 from sampsapursiainen/217-code-style-and-indentations
Description
The function
zef_waitbar
throws an error, if an integer is passed in as the first argument, as the deprecateddatestr
function cannot handle integers.Steps to reproduce
zef_waitbar(progress_ratio,waitbar handle,waitbar text)
, whereprogress_ratio
is an integer type.Expected behavior
The waitbar should be able to handle integers as input. The first argument shold be converted to a
double
by thezef_waitbar
function.Context