int array not returning passed in ints in Serial.print()

I’m having an issue when I make an integer array then try to print the array across Serial.print() I don’t get the integers I passed in.

  int rates[] = {38400, 115200};
  byte sizeofRates = sizeof(rates) / sizeof(rates[0]);
  
  for(byte i=0; i<sizeofRates; i++) {
    Serial.print("\n");
    Serial.print(rates[i]);
  }

Returns:
-27136
-15872

I’m not sure if the integers are actually changing or if it’s returning some other value that has to do with memory. But most likely I’m just being dumb :). Any help is appreciated

I figured out my problem. I should have been using an unsigned long because 115200 is larger than an int and I forgot the unsigned.