Opinion
Appellant was charged with a burglary which occurred on July 24, 1981. It was also alleged that appellant had commited two prior felonies; (1) an attempted burglary on September 1, 1976, and (2) a *448 burglary on July 18, 1972. Finally, it was alleged that appellant had served a separate prison term for each of the two prior offenses and that a period of five years had not elapsed since the conclusion of the last prison term during which appellant had remained free of both prison custody and conviction of a felony. (Pen. Code, § 667.5, subd. (b).)
Appellant was found guilty of burglary and of both priors as charged. He was sentenced to state prison for a total term of five years comprised of the upper base term of three years for the burglary and one additional year for each of the two priors.
Since this appeal is concerned with alleged sentencing error, the facts are unimportant other than as stated in the opinion.
I. Dual Use of Prior Convictions *
II. Ex Post Facto
Appellant was sentenced to two additional years based on the two prior convictions. Both priors occurred before the determinate sentencing law (DSL) became operative on July 1, 1977. The new law provided the sole basis for the enhancements via Penal Code section 667.5, subdivision (b). Appellant asserts the imposition of the two additional years of imprisonment is prohibited under the constitutional prohibitions against ex post facto laws. Under the law existing at the time appellant committed the priors, he could not have received additional prison time. A law has an ex post facto effect when it changes the punishment and inflicts a greater punishment than the law annexed to the crime
when committed. (In re Stanworth
(1982)
Appellant’s argument is rejected. Statutes which prescribe enhanced penalties for subsequent offenses are clearly constitutional. Chief Justice Wallace declared over a century ago in
Ex Parte Gutierrez
(1873)
Appellant’s previous sentences for his prior convictions were not increased by DSL; rather, his present sentence was enhanced because of his prior criminal activity. The enhancement in question, Penal Code section 667.5, subdivision (b), is not a substantive offense. If appellant had not been convicted of the underlying offense of burglary, he could not have been prosecuted and sentenced solely on the enhancement. Consequently, since the prior convictions were not elements of a substantive offense, the bar against ex post facto laws is inapplicable. (See In re McVickers, supra, 29 Cal.2d at pp. 270-271.) 1
Our conclusion is in accord with the purpose of ex post facto prohibitions which is to assure that legislative acts give fair warning of their effect and permit individuals to rely on their meaning until explicitly changed.
(Weaver
v.
Graham
(1981)
III. Equal Protection
Appellant contends his enhancement for prior prison terms pursuant to Penal Code section 667.5, subdivision (b) violates equal protection in according a greater effect to an in-state prior felony conviction (where the time served in prison need not be one year or more) as contrasted with the one-year *450 imprisonment requirement for out-of-state priors. (Compare Pen. Code, § 667.5, subds. (b) and (e) with subd. (f).)
While appellant’s argument may have some logic as an abstract proposition of law, it fails pragmatically since appellant has failed to show he is being treated differently than any other defendant with a nonenhanceable out-of-state prior conviction, i.e., that he served less than one year in prison in California on either or both of his prior convictions. The record shows that appellant actually served more than one year in prison for each of his prior California convictions. Thus, appellant has no standing to assert the denial of the equal protection of the law insofar as the enhancement of his current offense because of his prior convictions.
The Attorney General has cited this court’s opinion in
People
v.
Hernandez
(1979)
Assuming a defendant shows he has received a prior prison term enhancement because of a California prior where he served less than one year in prison on the prior, we do not believe a mere rational basis for such disparity in treatment would suffice for equal protection purposes. We make no further comment on the rationale of Hernandez, supra.
*451 The judgment is affirmed.
Andreen, J., and Martin, J., concurred.
Notes
See footnote, ante, page 445.
In re McVickers, supra,
