Skip to content
Snippets Groups Projects

product/morello: Fix comparison within assert

Merged Darryl Green requested to merge github/fork/girishpathak/topic/morello_debug_fix into master
  1. Jan 29, 2021
    • Girish Pathak's avatar
      product/morello: Fix comparison within assert · 2081027d
      Girish Pathak authored
      
      In mod_morello_pll.c, there is an assert call to check the incoming
      rate which is uint64_t with UINT16_MAX*FWK_MHZ. However the resulting
      value is not stored in correct data type which causes calculation to
      fail. This commit fixes this calculation.
      
      Note, this is visible only in the debug build since assert calls are
      enabled only in debug builds.
      
      Change-Id: I682882bf52c68e099d8d9959915fa26744ae845f
      Signed-off-by: default avatarGirish Pathak <girish.pathak@arm.com>
      2081027d