Comets are believed to have amorphous rather than crystalline ice at the epoch of their accretion. Cometary ice contains some impurities that govern the latent heat of ice crystallization, Lcry. However, it is still controversial whether the crystallization process is exothermic or endothermic. In this study, we perform one-dimensional simulations of the thermal evolution of kilometer-sized comets and investigate the effect of the latent heat. We find that the depth at which amorphous ice can survive significantly depends on the latent heat of ice crystallization. Assuming the cometary radius of 2 km, the depth of the amorphous ice mantle is approximately 100 m when the latent heat is positive (i.e., the exothermic case with Lcry = +9 × 104 J kg−1). In contrast, when we consider the impure ice representing the endothermic case with Lcry = −9 × 104 J kg−1, the depth of the amorphous ice mantle could exceed 1 km. Although our numerical results indicate that these depths depend on the size and the accretion age of comets, the depth in a comet with the negative latent heat is a few to several times larger than in the positive case for a given comet size. This work suggests that the spatial distribution of the ice crystallinity in a comet nucleus depends on the latent heat, which can be different from the previous estimates assuming pure water ice.