From c36f5c94a331a2451232ca9f90750a030cc1fe8e Mon Sep 17 00:00:00 2001 From: "Billy.Zheng" Date: Thu, 8 Aug 2024 18:09:10 +0800 Subject: [PATCH] Try fix compile error when enable -Dno_number_autocast --- src/config.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.cr b/src/config.cr index fa531ec..f1ed2e9 100644 --- a/src/config.cr +++ b/src/config.cr @@ -7,15 +7,15 @@ class Config property thumbnails : String = "./thumbnails" property db : String = "./db.sqlite3" property db_table_name : String = "files" - property filename_length : Int8 = 3 + property filename_length : Int32 = 3 # In MiB property size_limit : Int16 = 512 - property port : UInt16 = 8080 + property port : Int32 = 8080 property unix_socket : String? property delete_files_after : Int32 = 7 # How often should the check of old files be performed? (in seconds) property delete_files_after_check_seconds : Int32 = 1800 - property delete_key_length : Int8 = 4 + property delete_key_length : Int32 = 4 # Blocked extensions that are not allowed to be uploaded to the server property blocked_extensions : Array(String) = [] of String property siteInfo : String = "xd"