Defendant pled guilty as charged to attempted larceny in a building, MCL 750.92; MSA 28.287 and MCL 750.360; MSA 28.592, and to a supplemental information charging him with being an habitual offender, MCL 769.12; MSA 28.1084. He was sentenced to five years probation with the first six months to be served in the Bay County Jail. Defendant now appeals his conviction as of right, raising two issues.
Defendant first contends that the trial court *130 erred in treating his conviction of attempted larceny in a building as a felony for purposes of the habitual offender and length of probation provisions of the Code of Criminal Procedure. MCL 769.12; MSA 28.1084 and MCL 771.2; MSA 28.1132. Prior to submitting his plea, defendant moved to dismiss the supplemental information on the ground that the principal charge was for a misdemeanor offense and thus did not trigger the habitual offender statute. The trial court denied defendant’s motion.
Defendant correctly argues that under the Michigan Penal Code, attempted larceny in a building is a misdemeanor offense punishable by a term in prison of not more than two years. MCL 750.92; MSA 28.287 and MCL 750.503; MSA 28.771. However, the Code of Criminal Procedure defines felony for purposes of that statute as "a violation of a penal law of this state for which the offender, upon conviction, may be punished by death or by imprisonment for more than one year”. MCL 761.1(g); MSA 28.843(g). The majority view of this Court is that a two-year misdemeanor under the penal code will be construed as a felony for purposes of the Code of Criminal Procedure. See
People v Reuther,
Defendant next contends that the trial court erred in refusing to award defendant credit on his jail sentence for time already served while awaiting trial. We agree. MCL 769.11b; MSA 28.1083(2) provides:
"Whenever any person is hereafter convicted of any crime within this state and has served any time in jail prior to sentencing because of being denied or unable to furnish bond for the offense of which he is convicted, the trial court in imposing sentence shall specifically grant credit against the sentence for such time served in jail prior to sentencing.” See also GCR 1963, 785.8(3).
This Court has construed the statute to be mandatory in nature.
People v Lyles,
Affirmed.
