Skip to content
Snippets Groups Projects
Forked from antik / gsll
Source project has a limited visibility.
  • Liam Healy's avatar
    5a5906dd
    Fix defmfun expansion of default optional/key values · 5a5906dd
    Liam Healy authored
    For methods on marrays, all default values for optional and key
    arguments were wrongly coerced to the array element type.  This
    doesn't affect any current definitions in GSLL, but FFT functions with
    the stride specified, it will wrongly change the default value to the
    element type.  This has been fixed by changing #'actual-class-arglist
    so that it looks up the type intended to be passed to the C function
    and coerces to that if it is available.  Otherwise the expansion
    leaves the default value alone.
    5a5906dd
    History
    Fix defmfun expansion of default optional/key values
    Liam Healy authored
    For methods on marrays, all default values for optional and key
    arguments were wrongly coerced to the array element type.  This
    doesn't affect any current definitions in GSLL, but FFT functions with
    the stride specified, it will wrongly change the default value to the
    element type.  This has been fixed by changing #'actual-class-arglist
    so that it looks up the type intended to be passed to the C function
    and coerces to that if it is available.  Otherwise the expansion
    leaves the default value alone.