mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-10-31 03:29:01 +08:00 
			
		
		
		
	mdbx: fix minor casting warning.
Change-Id: I9615b3928bb1b88743b42be9d82a986255d1f074
This commit is contained in:
		| @@ -20684,7 +20684,7 @@ __cold intptr_t mdbx_limits_txnsize_max(intptr_t pagesize) { | ||||
|   STATIC_ASSERT(MAX_MAPSIZE < INTPTR_MAX); | ||||
|   const uint64_t pgl_limit = | ||||
|       pagesize * (uint64_t)(MDBX_PGL_LIMIT / 1.6180339887498948482); | ||||
|   const uint64_t map_limit = MAX_MAPSIZE / 1.6180339887498948482; | ||||
|   const uint64_t map_limit = (uint64_t)(MAX_MAPSIZE / 1.6180339887498948482); | ||||
|   return (pgl_limit < map_limit) ? (intptr_t)pgl_limit : (intptr_t)map_limit; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user