Skip to content

Commit

Permalink
Fix object creation with correct precision type (#78)
Browse files Browse the repository at this point in the history
Previously, the method incorrectly created an object with double precision instead of single precision. This commit corrects the precision type to ensure single-precision float objects are created as intended.
  • Loading branch information
Spomky authored Oct 31, 2024
1 parent 79b84a4 commit 0454287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OtherObject/SinglePrecisionFloatObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function createFromFloat(float $number): self
))(),
};

return new self(self::OBJECT_DOUBLE_PRECISION_FLOAT, $value);
return new self(self::OBJECT_SINGLE_PRECISION_FLOAT, $value);
}

public static function createFromLoadedData(int $additionalInformation, ?string $data): Base
Expand Down

0 comments on commit 0454287

Please sign in to comment.