cvut / qtrvsim

RISC-V CPU simulator for education purposes
GNU General Public License v3.0
504 stars 69 forks source link

Bug: parse_csr_address failed on CI windows2022 #127

Open trdthg opened 7 months ago

trdthg commented 7 months ago

I found that the stroul function behaves differently in the CI windows2022 Clang Qt6 environment

stroul can't handle hex str correctly

log place

image

winows 2019 success char_token = 5 image

windows 2022 failed char_token = 0 image

Maybe we could use QString::toULong, but all the ways of determining whether parsing was successful by char_token ! = 0 should be changed to bool

image